Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -201,12 +201,12 @@ pub enum Error {
impl std::fmt::Display for Error {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match self {
Error::Priority(s) => write!(f, "unable to set priority: {}", s),
Error::Priority(s) => write!(f, "unable to set priority: {s}"),
Error::PriorityNotInRange(range) => {
write!(f, "priority must be within the range: {:?}", range)
write!(f, "priority must be within the range: {range:?}")
}
Error::OS(i) => write!(f, "the operating system returned error code {}", i),
Error::Ffi(s) => write!(f, "FFI error: {}", s),
Error::OS(i) => write!(f, "the operating system returned error code {i}"),
Error::Ffi(s) => write!(f, "FFI error: {s}"),
}
}
}
Expand Down