Fix uninlined format argument lint (#19561)
# Objective Fixes #19370 ## Solution Implemented the lint as suggested by clippy. ## Testing CI tests passed and lint was resolved.
This commit is contained in:
parent
1294b71e35
commit
a4dd873df8
@ -166,7 +166,7 @@ impl Schedules {
|
|||||||
writeln!(message, "{}", components.get_name(*id).unwrap()).unwrap();
|
writeln!(message, "{}", components.get_name(*id).unwrap()).unwrap();
|
||||||
}
|
}
|
||||||
|
|
||||||
info!("{}", message);
|
info!("{message}");
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Adds one or more systems to the [`Schedule`] matching the provided [`ScheduleLabel`].
|
/// Adds one or more systems to the [`Schedule`] matching the provided [`ScheduleLabel`].
|
||||||
@ -1705,10 +1705,7 @@ impl ScheduleGraph {
|
|||||||
match self.settings.hierarchy_detection {
|
match self.settings.hierarchy_detection {
|
||||||
LogLevel::Ignore => unreachable!(),
|
LogLevel::Ignore => unreachable!(),
|
||||||
LogLevel::Warn => {
|
LogLevel::Warn => {
|
||||||
error!(
|
error!("Schedule {schedule_label:?} has redundant edges:\n {message}");
|
||||||
"Schedule {schedule_label:?} has redundant edges:\n {}",
|
|
||||||
message
|
|
||||||
);
|
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
LogLevel::Error => Err(ScheduleBuildError::HierarchyRedundancy(message)),
|
LogLevel::Error => Err(ScheduleBuildError::HierarchyRedundancy(message)),
|
||||||
@ -1910,7 +1907,7 @@ impl ScheduleGraph {
|
|||||||
match self.settings.ambiguity_detection {
|
match self.settings.ambiguity_detection {
|
||||||
LogLevel::Ignore => Ok(()),
|
LogLevel::Ignore => Ok(()),
|
||||||
LogLevel::Warn => {
|
LogLevel::Warn => {
|
||||||
warn!("Schedule {schedule_label:?} has ambiguities.\n{}", message);
|
warn!("Schedule {schedule_label:?} has ambiguities.\n{message}");
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
LogLevel::Error => Err(ScheduleBuildError::Ambiguity(message)),
|
LogLevel::Error => Err(ScheduleBuildError::Ambiguity(message)),
|
||||||
|
@ -475,9 +475,8 @@ impl Stepping {
|
|||||||
Some(state) => state.clear_behaviors(),
|
Some(state) => state.clear_behaviors(),
|
||||||
None => {
|
None => {
|
||||||
warn!(
|
warn!(
|
||||||
"stepping is not enabled for schedule {:?}; \
|
"stepping is not enabled for schedule {label:?}; \
|
||||||
use `.add_stepping({:?})` to enable stepping",
|
use `.add_stepping({label:?})` to enable stepping"
|
||||||
label, label
|
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@ -486,9 +485,8 @@ impl Stepping {
|
|||||||
Some(state) => state.set_behavior(system, behavior),
|
Some(state) => state.set_behavior(system, behavior),
|
||||||
None => {
|
None => {
|
||||||
warn!(
|
warn!(
|
||||||
"stepping is not enabled for schedule {:?}; \
|
"stepping is not enabled for schedule {label:?}; \
|
||||||
use `.add_stepping({:?})` to enable stepping",
|
use `.add_stepping({label:?})` to enable stepping"
|
||||||
label, label
|
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -498,9 +496,8 @@ impl Stepping {
|
|||||||
Some(state) => state.clear_behavior(system),
|
Some(state) => state.clear_behavior(system),
|
||||||
None => {
|
None => {
|
||||||
warn!(
|
warn!(
|
||||||
"stepping is not enabled for schedule {:?}; \
|
"stepping is not enabled for schedule {label:?}; \
|
||||||
use `.add_stepping({:?})` to enable stepping",
|
use `.add_stepping({label:?})` to enable stepping"
|
||||||
label, label
|
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user