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:
Zion Klinger 2025-06-09 16:53:19 -04:00 committed by GitHub
parent 1294b71e35
commit a4dd873df8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 9 additions and 15 deletions

View File

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

View File

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