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::float_cmp)] // TODO: Pending review in #587
|
||||||
#[allow(clippy::needless_return)] // 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(
|
fn handle_object(
|
||||||
server: &mut Server,
|
server: &mut Server,
|
||||||
client: EcsEntity,
|
client: EcsEntity,
|
||||||
@ -1695,7 +1694,6 @@ fn handle_object(
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#[allow(clippy::useless_format)] // TODO: Pending review in #587
|
|
||||||
fn handle_light(
|
fn handle_light(
|
||||||
server: &mut Server,
|
server: &mut Server,
|
||||||
client: EcsEntity,
|
client: EcsEntity,
|
||||||
@ -2144,7 +2142,6 @@ fn handle_adminify(
|
|||||||
}
|
}
|
||||||
|
|
||||||
#[allow(clippy::useless_conversion)] // TODO: Pending review in #587
|
#[allow(clippy::useless_conversion)] // TODO: Pending review in #587
|
||||||
#[allow(clippy::useless_format)] // TODO: Pending review in #587
|
|
||||||
fn handle_tell(
|
fn handle_tell(
|
||||||
server: &mut Server,
|
server: &mut Server,
|
||||||
client: EcsEntity,
|
client: EcsEntity,
|
||||||
|
@ -568,7 +568,6 @@ impl<'a> Widget for Bag<'a> {
|
|||||||
|
|
||||||
fn style(&self) -> Self::Style {}
|
fn style(&self) -> Self::Style {}
|
||||||
|
|
||||||
#[allow(clippy::useless_format)] // TODO: Pending review in #587
|
|
||||||
fn update(self, args: widget::UpdateArgs<Self>) -> Self::Event {
|
fn update(self, args: widget::UpdateArgs<Self>) -> Self::Event {
|
||||||
common_base::prof_span!("Bag::update");
|
common_base::prof_span!("Bag::update");
|
||||||
let widget::UpdateArgs { state, ui, .. } = args;
|
let widget::UpdateArgs { state, ui, .. } = args;
|
||||||
|
@ -194,7 +194,6 @@ impl<'a> Widget for Map<'a> {
|
|||||||
|
|
||||||
fn style(&self) -> Self::Style {}
|
fn style(&self) -> Self::Style {}
|
||||||
|
|
||||||
#[allow(clippy::useless_format)] // TODO: Pending review in #587
|
|
||||||
fn update(self, args: widget::UpdateArgs<Self>) -> Self::Event {
|
fn update(self, args: widget::UpdateArgs<Self>) -> Self::Event {
|
||||||
common_base::prof_span!("Map::update");
|
common_base::prof_span!("Map::update");
|
||||||
let widget::UpdateArgs { state, ui, .. } = args;
|
let widget::UpdateArgs { state, ui, .. } = args;
|
||||||
@ -960,7 +959,7 @@ impl<'a> Widget for Map<'a> {
|
|||||||
} else {
|
} else {
|
||||||
size as f64 / 2.5
|
size as f64 / 2.5
|
||||||
};
|
};
|
||||||
Text::new(&format!("{}", title))
|
Text::new(&title.to_string())
|
||||||
.x_y_position_relative_to(
|
.x_y_position_relative_to(
|
||||||
state.ids.map_layers[0],
|
state.ids.map_layers[0],
|
||||||
position::Relative::Scalar(rpos.x as f64),
|
position::Relative::Scalar(rpos.x as f64),
|
||||||
|
Loading…
Reference in New Issue
Block a user