Skip to content

Commit

Permalink
bulb: Fix clippy lints
Browse files Browse the repository at this point in the history
  • Loading branch information
DougLau committed Dec 11, 2024
1 parent b35cec7 commit d3456da
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions bulb/src/dms.rs
Original file line number Diff line number Diff line change
Expand Up @@ -788,6 +788,7 @@ impl Dms {
}
html.push_str("</select>");
html.push_str(&anc.make_lines(
#[allow(clippy::unnecessary_literal_unwrap)]
&sign.unwrap(),
pat_def,
self.current_multi(anc),
Expand Down
4 changes: 2 additions & 2 deletions bulb/src/item.rs
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ impl ItemState {
}
}

impl<'a> fmt::Display for ItemStates<'a> {
impl fmt::Display for ItemStates<'_> {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
let mut first = true;
for (state, _dtl) in self.all.iter() {
Expand All @@ -164,7 +164,7 @@ impl<'a> fmt::Display for ItemStates<'a> {
}
}

impl<'a> From<ItemState> for ItemStates<'a> {
impl From<ItemState> for ItemStates<'_> {
fn from(state: ItemState) -> Self {
ItemStates {
all: vec![(state, "")],
Expand Down

0 comments on commit d3456da

Please sign in to comment.