Skip to content

Commit 486f251

Browse files
committed
chore: Fix clippy warnings
1 parent 18b1691 commit 486f251

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

css-inline/src/error.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ impl Display for InlineError {
4848
Self::Network(error) => error.fmt(f),
4949
Self::ParseError(error) => f.write_str(error),
5050
Self::MissingStyleSheet { path } => {
51-
f.write_fmt(format_args!("Missing stylesheet file: {}", path))
51+
f.write_fmt(format_args!("Missing stylesheet file: {path}"))
5252
}
5353
}
5454
}
@@ -59,11 +59,11 @@ impl From<(ParseError<'_, ()>, &str)> for InlineError {
5959
return match error.0.kind {
6060
ParseErrorKind::Basic(kind) => match kind {
6161
BasicParseErrorKind::UnexpectedToken(token) => {
62-
Self::ParseError(Cow::Owned(format!("Unexpected token: {:?}", token)))
62+
Self::ParseError(Cow::Owned(format!("Unexpected token: {token:?}")))
6363
}
6464
BasicParseErrorKind::EndOfInput => Self::ParseError(Cow::Borrowed("End of input")),
6565
BasicParseErrorKind::AtRuleInvalid(value) => {
66-
Self::ParseError(Cow::Owned(format!("Invalid @ rule: {}", value)))
66+
Self::ParseError(Cow::Owned(format!("Invalid @ rule: {value}")))
6767
}
6868
BasicParseErrorKind::AtRuleBodyInvalid => {
6969
Self::ParseError(Cow::Borrowed("Invalid @ rule body"))

css-inline/src/main.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -130,14 +130,14 @@ fn main() -> Result<(), Box<dyn Error>> {
130130
})
131131
.for_each(|result| match result {
132132
Ok((filename, result)) => match result {
133-
Ok(_) => println!("{}: SUCCESS", filename),
133+
Ok(_) => println!("{filename}: SUCCESS"),
134134
Err(error) => {
135-
println!("{}: FAILURE ({})", filename, error);
135+
println!("{filename}: FAILURE ({error})");
136136
exit_code.store(1, Ordering::SeqCst);
137137
}
138138
},
139139
Err((filename, error)) => {
140-
println!("{}: FAILURE ({})", filename, error);
140+
println!("{filename}: FAILURE ({error})");
141141
exit_code.store(1, Ordering::SeqCst);
142142
}
143143
});

0 commit comments

Comments
 (0)