Fix clippy lints in librustdoc
This commit is contained in:
parent
56694b0453
commit
4614ca4541
27 changed files with 194 additions and 221 deletions
|
@ -128,7 +128,7 @@ impl Context<'_> {
|
|||
) -> Result<(), Error> {
|
||||
if minify {
|
||||
let contents = contents.as_ref();
|
||||
let contents = if resource.extension() == Some(&OsStr::new("css")) {
|
||||
let contents = if resource.extension() == Some(OsStr::new("css")) {
|
||||
minifier::css::minify(contents).map_err(|e| {
|
||||
Error::new(format!("failed to minify CSS file: {}", e), resource.path(self))
|
||||
})?
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue