Run nightly Clippy over the Ruff repo (#5670)

## Summary

This is the result of running `cargo +nightly clippy --workspace
--all-targets --all-features -- -D warnings` and fixing all violations.
Just wanted to see if there were any interesting new checks on nightly
👀
This commit is contained in:
Charlie Marsh 2023-07-10 23:44:38 -04:00 committed by GitHub
parent e7e2f44440
commit 4dee49d6fa
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
40 changed files with 220 additions and 470 deletions

View file

@ -26,7 +26,7 @@ impl<'ast> AsFormat<PyFormatContext<'ast>> for Mod {
type Format<'a> = FormatRefWithRule<'a, Mod, FormatMod, PyFormatContext<'ast>>;
fn format(&self) -> Self::Format<'_> {
FormatRefWithRule::new(self, FormatMod::default())
FormatRefWithRule::new(self, FormatMod)
}
}
@ -34,6 +34,6 @@ impl<'ast> IntoFormat<PyFormatContext<'ast>> for Mod {
type Format = FormatOwnedWithRule<Mod, FormatMod, PyFormatContext<'ast>>;
fn into_format(self) -> Self::Format {
FormatOwnedWithRule::new(self, FormatMod::default())
FormatOwnedWithRule::new(self, FormatMod)
}
}