Skip to content

Commit

Permalink
Fix clippy warning
Browse files Browse the repository at this point in the history
  • Loading branch information
dricair committed Apr 23, 2023
1 parent 4547183 commit 88b88d7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/yew-bootstrap/src/component/badge.rs
Original file line number Diff line number Diff line change
Expand Up @@ -63,10 +63,10 @@ impl Component for Badge {
let mut classes = Classes::new();
match &props.position {
Some(position) => {
classes.push(format!("position-absolute"));
classes.push("position-absolute".to_string());
classes.push(format!("{}", position.0));
classes.push(format!("{}", position.1));
classes.push(format!("translate-middle"));
classes.push("translate-middle".to_string());
}
None => {}
}
Expand Down

0 comments on commit 88b88d7

Please sign in to comment.