remove as_str() legacy wrappers, callers use .into() directly
This commit is contained in:
parent
299add158f
commit
46456f75ce
25 changed files with 46 additions and 128 deletions
|
|
@ -385,7 +385,7 @@ fn run_set_wanted(coord: &Arc<Coordinator>, agent: &str, up: bool) -> Result<()>
|
|||
coord
|
||||
.power
|
||||
.set(agent, wanted)
|
||||
.with_context(|| format!("set wanted={} for agent {agent}", wanted.as_str()))?;
|
||||
.with_context(|| format!("set wanted={} for agent {agent}", <&str>::from(wanted)))?;
|
||||
Ok(())
|
||||
}
|
||||
|
||||
|
|
@ -579,7 +579,7 @@ async fn run_reconcile(coord: &Arc<Coordinator>, name: &str) -> Result<Option<No
|
|||
agent: name.to_owned(),
|
||||
}),
|
||||
ReconcileAction::Noop => {
|
||||
tracing::debug!(%name, wanted = wanted.as_str(), running, "reconcile: noop");
|
||||
tracing::debug!(%name, wanted = <&str>::from(wanted), running, "reconcile: noop");
|
||||
None
|
||||
}
|
||||
})
|
||||
|
|
|
|||
Loading…
Reference in a new issue