Skip to content

Commit

Permalink
fix: warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
bomgar committed Nov 24, 2023
1 parent e8f3692 commit 7d1e1b1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/substitution.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,9 @@ pub struct Substitution {
}

impl Substitution {
pub const DEFAULT_PLACEHOLDER_FORMAT: &str = "{key}";
pub const KEY_DELIMITER: &str = "key";
pub const DEFAULT_CONTEXT_KEY: &str = "context";
pub const DEFAULT_PLACEHOLDER_FORMAT: &'static str = "{key}";
pub const KEY_DELIMITER: &'static str = "key";
pub const DEFAULT_CONTEXT_KEY: &'static str = "context";

pub fn new<S: Into<String>>(context_key: Option<S>, placeholder_format: Option<S>) -> Result<Self, Error> {
let format = placeholder_format.map_or(Self::DEFAULT_PLACEHOLDER_FORMAT.to_owned(), Into::into);
Expand Down

0 comments on commit 7d1e1b1

Please sign in to comment.