diff --git a/api/sixtyfps-node/native/persistent_context.rs b/api/sixtyfps-node/native/persistent_context.rs index b705d5ca7..04e6cfe8e 100644 --- a/api/sixtyfps-node/native/persistent_context.rs +++ b/api/sixtyfps-node/native/persistent_context.rs @@ -14,7 +14,7 @@ Since neon does not allow to have a persistent handle, use this hack. use neon::prelude::*; pub struct PersistentContext<'a>(Handle<'a, JsArray>); -const KEY: &'static str = "$__persistent_context"; +const KEY: &str = "$__persistent_context"; /// Since neon does not allow to have a persistent handle, this allocates property in an array. /// This array is gonna be kept as a property somewhere. diff --git a/tools/fmt/main.rs b/tools/fmt/main.rs index 4b5e093ff..e79f31c49 100644 --- a/tools/fmt/main.rs +++ b/tools/fmt/main.rs @@ -112,8 +112,8 @@ fn process_rust_file(source: String, mut file: impl Write) -> std::io::Result<() /// FIXME! this is duplicated with the updater fn process_markdown_file(source: String, mut file: impl Write) -> std::io::Result<()> { let mut source_slice = &source[..]; - const CODE_FENCE_START: &'static str = "```60\n"; - const CODE_FENCE_END: &'static str = "```\n"; + const CODE_FENCE_START: &str = "```60\n"; + const CODE_FENCE_END: &str = "```\n"; 'l: while let Some(code_start) = source_slice.find(CODE_FENCE_START).map(|idx| idx + CODE_FENCE_START.len()) { diff --git a/tools/syntax_updater/main.rs b/tools/syntax_updater/main.rs index c503a57c8..361f07e8b 100644 --- a/tools/syntax_updater/main.rs +++ b/tools/syntax_updater/main.rs @@ -120,8 +120,8 @@ fn process_rust_file(source: String, mut file: impl Write, args: &Cli) -> std::i fn process_markdown_file(source: String, mut file: impl Write, args: &Cli) -> std::io::Result<()> { let mut source_slice = &source[..]; - const CODE_FENCE_START: &'static str = "```60\n"; - const CODE_FENCE_END: &'static str = "```\n"; + const CODE_FENCE_START: &str = "```60\n"; + const CODE_FENCE_END: &str = "```\n"; 'l: while let Some(code_start) = source_slice.find(CODE_FENCE_START).map(|idx| idx + CODE_FENCE_START.len()) {