Skip to content

Commit

Permalink
cargo clippy --fix
Browse files Browse the repository at this point in the history
  • Loading branch information
AnthonyTornetta committed Oct 30, 2023
1 parent a7eb7e4 commit 51b3592
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cosmos_client/src/ui/hotbar.rs
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ fn listen_for_change_events(
if let Some(is) = inv.itemstack_at(hb.selected_slot()) {
name_text.sections[0].value = names
.get_name_from_numeric_id(is.item_id())
.unwrap_or(&format!("{}", items.from_numeric_id(is.item_id()).unlocalized_name()))
.unwrap_or(&items.from_numeric_id(is.item_id()).unlocalized_name().to_string())
.to_owned();

name_text.sections[0].style.color = Color::WHITE;
Expand Down

0 comments on commit 51b3592

Please sign in to comment.