Merge pull request #54 from EstebanBorai/trunk

fix: `'static` lifetime elision for examples
This commit is contained in:
Ryan McGrath 2022-10-12 11:37:02 -07:00 committed by GitHub
commit 1ad51887a4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 5 deletions

View file

@ -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;

View file

@ -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,

View file

@ -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)]