Resolve all '#[allow(clippy::useless_format)]' error supressions

This commit is contained in:
Dr. Dystopia 2021-07-15 13:46:53 +02:00
parent c03ad39440
commit 2ff74f5cc9
3 changed files with 1 additions and 6 deletions

View File

@ -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,

View File

@ -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;

View File

@ -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),