Chore: Apply latest nightly clippy lints

This commit is contained in:
Kyle Simpson
2023-01-09 00:43:53 +00:00
parent c60c454cf5
commit 125c803fa7
9 changed files with 21 additions and 31 deletions

View File

@@ -46,12 +46,12 @@ impl Debug for TrackCommand {
Self::Play => "Play".to_string(),
Self::Pause => "Pause".to_string(),
Self::Stop => "Stop".to_string(),
Self::Volume(vol) => format!("Volume({})", vol),
Self::Volume(vol) => format!("Volume({vol})"),
Self::Seek(s) => format!("Seek({:?})", s.time),
Self::AddEvent(evt) => format!("AddEvent({:?})", evt),
Self::AddEvent(evt) => format!("AddEvent({evt:?})"),
Self::Do(_f) => "Do([function])".to_string(),
Self::Request(tx) => format!("Request({:?})", tx),
Self::Loop(loops) => format!("Loop({:?})", loops),
Self::Request(tx) => format!("Request({tx:?})"),
Self::Loop(loops) => format!("Loop({loops:?})"),
Self::MakePlayable(_) => "MakePlayable".to_string(),
}
)

View File

@@ -37,7 +37,7 @@ impl Display for ControlError {
write!(f, "given event listener can't be fired on a track")
},
ControlError::Play(p) => {
write!(f, "i/o request on track failed: {}", p)
write!(f, "i/o request on track failed: {p}")
},
ControlError::Dropped => write!(f, "request was replaced by another of same type"),
}