diff --git a/examples/browser/toolbar.rs b/examples/browser/toolbar.rs index ecdbb6c..b4416dd 100644 --- a/examples/browser/toolbar.rs +++ b/examples/browser/toolbar.rs @@ -7,9 +7,9 @@ use cacao::appkit::toolbar::{ItemIdentifier, Toolbar, ToolbarDelegate, ToolbarDi use super::Action; -const BACK_BUTTON: &'static str = "BackButton"; -const FWDS_BUTTON: &'static str = "FwdsButton"; -const URL_BAR: &'static str = "URLBar"; +const BACK_BUTTON: &str = "BackButton"; +const FWDS_BUTTON: &str = "FwdsButton"; +const URL_BAR: &str = "URLBar"; #[derive(Debug)] pub struct URLBar; diff --git a/examples/todos_list/storage/defaults.rs b/examples/todos_list/storage/defaults.rs index 5ff93db..d327171 100644 --- a/examples/todos_list/storage/defaults.rs +++ b/examples/todos_list/storage/defaults.rs @@ -2,7 +2,7 @@ use std::collections::HashMap; use cacao::defaults::{UserDefaults, Value}; -const EXAMPLE: &'static str = "exampleSetting"; +const EXAMPLE: &str = "exampleSetting"; /// A very basic wrapper around UserDefaults. If I wind up implementing Serde support for /// UserDefaults, then much of this could be removed or simplified - but I'm not sold on that yet, diff --git a/examples/todos_list/todos/list/mod.rs b/examples/todos_list/todos/list/mod.rs index aef2dac..d8022d3 100644 --- a/examples/todos_list/todos/list/mod.rs +++ b/examples/todos_list/todos/list/mod.rs @@ -10,7 +10,7 @@ mod row; use row::TodoViewRow; /// An identifier for the cell(s) we dequeue. -const TODO_ROW: &'static str = "TodoViewRowCell"; +const TODO_ROW: &str = "TodoViewRowCell"; /// The list view for todos. #[derive(Debug, Default)]