mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
Resolve all '#[allow(clippy::useless_format)]' error supressions
This commit is contained in:
parent
c03ad39440
commit
2ff74f5cc9
@ -1635,7 +1635,6 @@ fn handle_kit(
|
||||
|
||||
#[allow(clippy::float_cmp)] // TODO: Pending review in #587
|
||||
#[allow(clippy::needless_return)] // TODO: Pending review in #587
|
||||
#[allow(clippy::useless_format)] // TODO: Pending review in #587
|
||||
fn handle_object(
|
||||
server: &mut Server,
|
||||
client: EcsEntity,
|
||||
@ -1695,7 +1694,6 @@ fn handle_object(
|
||||
}
|
||||
}
|
||||
|
||||
#[allow(clippy::useless_format)] // TODO: Pending review in #587
|
||||
fn handle_light(
|
||||
server: &mut Server,
|
||||
client: EcsEntity,
|
||||
@ -2144,7 +2142,6 @@ fn handle_adminify(
|
||||
}
|
||||
|
||||
#[allow(clippy::useless_conversion)] // TODO: Pending review in #587
|
||||
#[allow(clippy::useless_format)] // TODO: Pending review in #587
|
||||
fn handle_tell(
|
||||
server: &mut Server,
|
||||
client: EcsEntity,
|
||||
|
@ -568,7 +568,6 @@ impl<'a> Widget for Bag<'a> {
|
||||
|
||||
fn style(&self) -> Self::Style {}
|
||||
|
||||
#[allow(clippy::useless_format)] // TODO: Pending review in #587
|
||||
fn update(self, args: widget::UpdateArgs<Self>) -> Self::Event {
|
||||
common_base::prof_span!("Bag::update");
|
||||
let widget::UpdateArgs { state, ui, .. } = args;
|
||||
|
@ -194,7 +194,6 @@ impl<'a> Widget for Map<'a> {
|
||||
|
||||
fn style(&self) -> Self::Style {}
|
||||
|
||||
#[allow(clippy::useless_format)] // TODO: Pending review in #587
|
||||
fn update(self, args: widget::UpdateArgs<Self>) -> Self::Event {
|
||||
common_base::prof_span!("Map::update");
|
||||
let widget::UpdateArgs { state, ui, .. } = args;
|
||||
@ -960,7 +959,7 @@ impl<'a> Widget for Map<'a> {
|
||||
} else {
|
||||
size as f64 / 2.5
|
||||
};
|
||||
Text::new(&format!("{}", title))
|
||||
Text::new(&title.to_string())
|
||||
.x_y_position_relative_to(
|
||||
state.ids.map_layers[0],
|
||||
position::Relative::Scalar(rpos.x as f64),
|
||||
|
Loading…
Reference in New Issue
Block a user