Merge pull request #54 from EstebanBorai/trunk
fix: `'static` lifetime elision for examples
This commit is contained in:
commit
1ad51887a4
|
@ -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;
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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)]
|
||||
|
|
Loading…
Reference in a new issue