Skip to content

Commit aaebd7b

Browse files
authored
chore: Clippy fix (#48)
1 parent d0f518b commit aaebd7b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/lib.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -201,12 +201,12 @@ pub enum Error {
201201
impl std::fmt::Display for Error {
202202
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
203203
match self {
204-
Error::Priority(s) => write!(f, "unable to set priority: {}", s),
204+
Error::Priority(s) => write!(f, "unable to set priority: {s}"),
205205
Error::PriorityNotInRange(range) => {
206-
write!(f, "priority must be within the range: {:?}", range)
206+
write!(f, "priority must be within the range: {range:?}")
207207
}
208-
Error::OS(i) => write!(f, "the operating system returned error code {}", i),
209-
Error::Ffi(s) => write!(f, "FFI error: {}", s),
208+
Error::OS(i) => write!(f, "the operating system returned error code {i}"),
209+
Error::Ffi(s) => write!(f, "FFI error: {s}"),
210210
}
211211
}
212212
}

0 commit comments

Comments
 (0)