From 717584c610834d61f9914fe0026d1ba60db2c18c Mon Sep 17 00:00:00 2001 From: Julian Hofer Date: Sat, 27 Jan 2024 16:24:32 +0100 Subject: [PATCH] book: Use const consistently --- book/listings/todo/5/main.rs | 2 +- book/listings/todo/6/main.rs | 2 +- book/listings/todo/7/main.rs | 2 +- book/listings/todo/8/main.rs | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/book/listings/todo/5/main.rs b/book/listings/todo/5/main.rs index b48bbc22ae05..302833ad5dc0 100644 --- a/book/listings/todo/5/main.rs +++ b/book/listings/todo/5/main.rs @@ -7,7 +7,7 @@ use gtk::prelude::*; use gtk::{gio, glib}; use window::Window; -static APP_ID: &str = "org.gtk_rs.Todo5"; +const APP_ID: &str = "org.gtk_rs.Todo5"; // ANCHOR: main fn main() -> glib::ExitCode { diff --git a/book/listings/todo/6/main.rs b/book/listings/todo/6/main.rs index 714558b3544e..373c54387924 100644 --- a/book/listings/todo/6/main.rs +++ b/book/listings/todo/6/main.rs @@ -6,7 +6,7 @@ use adw::prelude::*; use gtk::{gio, glib}; use window::Window; -static APP_ID: &str = "org.gtk_rs.Todo6"; +const APP_ID: &str = "org.gtk_rs.Todo6"; fn main() -> glib::ExitCode { gio::resources_register_include!("todo_6.gresource") diff --git a/book/listings/todo/7/main.rs b/book/listings/todo/7/main.rs index fc76fd3a6b17..75824d7cf4fa 100644 --- a/book/listings/todo/7/main.rs +++ b/book/listings/todo/7/main.rs @@ -6,7 +6,7 @@ use adw::prelude::*; use gtk::{gio, glib}; use window::Window; -static APP_ID: &str = "org.gtk_rs.Todo7"; +const APP_ID: &str = "org.gtk_rs.Todo7"; fn main() -> glib::ExitCode { gio::resources_register_include!("todo_7.gresource") diff --git a/book/listings/todo/8/main.rs b/book/listings/todo/8/main.rs index 0832794d35e7..01d776ead8ef 100644 --- a/book/listings/todo/8/main.rs +++ b/book/listings/todo/8/main.rs @@ -7,7 +7,7 @@ use adw::prelude::*; use gtk::{gio, glib}; use window::Window; -static APP_ID: &str = "org.gtk_rs.Todo8"; +const APP_ID: &str = "org.gtk_rs.Todo8"; fn main() -> glib::ExitCode { gio::resources_register_include!("todo_8.gresource")