Skip to content
Merged
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
4 changes: 2 additions & 2 deletions src/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ impl std::fmt::Display for Error {
write!(f, "unexpected end of stream")
}
Self::UnexpectedData(pos) => {
write!(f, "unexpected data at position {}", pos)
write!(f, "unexpected data at position {pos}")
}
Self::InvalidValue => {
write!(f, "invalid value")
Expand Down Expand Up @@ -87,7 +87,7 @@ impl std::fmt::Display for Error {
)
}
Self::InvalidNumber(pos) => {
write!(f, "invalid number at position {}", pos)
write!(f, "invalid number at position {pos}")
}
}
}
Expand Down
13 changes: 6 additions & 7 deletions src/filter_functions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -77,26 +77,25 @@ impl std::fmt::Display for FilterValueListParserError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match *self {
Self::PercentageValue(pos) => {
write!(f, "a percentage value detected at position {}", pos)
write!(f, "a percentage value detected at position {pos}")
}
Self::NegativeValue(pos) => {
write!(f, "a negative value detected at position {}", pos)
write!(f, "a negative value detected at position {pos}")
}
Self::InvalidAngle(pos) => {
write!(f, "an invalid angle at position {}", pos)
write!(f, "an invalid angle at position {pos}")
}
Self::MissingDropShadowOffset(pos) => {
write!(
f,
"drop-shadow offset values are expected at position {}",
pos
"drop-shadow offset values are expected at position {pos}"
)
}
Self::InvalidUrl(pos) => {
write!(f, "an invalid url at position {}", pos)
write!(f, "an invalid url at position {pos}")
}
Self::StreamErrors(ref e) => {
write!(f, "{}", e)
write!(f, "{e}")
}
}
}
Expand Down
4 changes: 2 additions & 2 deletions src/font.rs
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,9 @@ impl Display for FontFamily {
Self::SansSerif => "sans-serif".to_string(),
Self::Cursive => "cursive".to_string(),
Self::Fantasy => "fantasy".to_string(),
Self::Named(s) => format!("\"{}\"", s),
Self::Named(s) => format!("\"{s}\""),
};
write!(f, "{}", str)
write!(f, "{str}")
}
}

Expand Down
Loading