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;
|
use super::Action;
|
||||||
|
|
||||||
const BACK_BUTTON: &'static str = "BackButton";
|
const BACK_BUTTON: &str = "BackButton";
|
||||||
const FWDS_BUTTON: &'static str = "FwdsButton";
|
const FWDS_BUTTON: &str = "FwdsButton";
|
||||||
const URL_BAR: &'static str = "URLBar";
|
const URL_BAR: &str = "URLBar";
|
||||||
|
|
||||||
#[derive(Debug)]
|
#[derive(Debug)]
|
||||||
pub struct URLBar;
|
pub struct URLBar;
|
||||||
|
|
|
@ -2,7 +2,7 @@ use std::collections::HashMap;
|
||||||
|
|
||||||
use cacao::defaults::{UserDefaults, Value};
|
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
|
/// 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,
|
/// 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;
|
use row::TodoViewRow;
|
||||||
|
|
||||||
/// An identifier for the cell(s) we dequeue.
|
/// An identifier for the cell(s) we dequeue.
|
||||||
const TODO_ROW: &'static str = "TodoViewRowCell";
|
const TODO_ROW: &str = "TodoViewRowCell";
|
||||||
|
|
||||||
/// The list view for todos.
|
/// The list view for todos.
|
||||||
#[derive(Debug, Default)]
|
#[derive(Debug, Default)]
|
||||||
|
|
Loading…
Reference in a new issue