Skip to content
Open
Show file tree
Hide file tree
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
12 changes: 5 additions & 7 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -209,13 +209,11 @@ impl std::fmt::Display for Error {
Self::LaunchArgumentsNotSupported => {
write!(f, "kernel drivers do not support launch arguments")
}
Self::ParseValue(name, _) => write!(f, "invalid {} value", name),
Self::ArgumentHasNulByte(name) => write!(f, "{} contains a nul byte", name),
Self::ArgumentArrayElementHasNulByte(name, index) => write!(
f,
"{} contains a nul byte in element at {} index",
name, index
),
Self::ParseValue(name, _) => write!(f, "invalid {name} value"),
Self::ArgumentHasNulByte(name) => write!(f, "{name} contains a nul byte"),
Self::ArgumentArrayElementHasNulByte(name, index) => {
write!(f, "{name} contains a nul byte in element at {index} index",)
}
Self::Winapi(_) => write!(f, "IO error in winapi call"),
}
}
Expand Down
6 changes: 3 additions & 3 deletions src/service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1943,13 +1943,13 @@ impl std::fmt::Display for ParseRawError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match self {
Self::InvalidInteger(u) => {
write!(f, "invalid unsigned integer for the target type: {}", u)
write!(f, "invalid unsigned integer for the target type: {u}")
}
Self::InvalidIntegerSigned(i) => {
write!(f, "invalid signed integer for the target type: {}", i)
write!(f, "invalid signed integer for the target type: {i}")
}
Self::InvalidGuid(guid) => {
write!(f, "invalid GUID value for the target type: {}", guid)
write!(f, "invalid GUID value for the target type: {guid}")
}
}
}
Expand Down
Loading