mirror of
https://github.com/zed-industries/zed.git
synced 2024-12-26 20:32:22 +03:00
Enable clippy::unit_arg
(#8742)
This PR enables the [`clippy::unit_arg`](https://rust-lang.github.io/rust-clippy/master/index.html#/unit_arg) rule and suppresses the false positive that it flags. Release Notes: - N/A
This commit is contained in:
parent
2bfc646f33
commit
008c5053e6
@ -497,7 +497,7 @@ impl Platform for MacPlatform {
|
||||
options: WindowOptions,
|
||||
) -> Box<dyn PlatformWindow> {
|
||||
// Clippy thinks that this evaluates to `()`, for some reason.
|
||||
#[allow(clippy::clone_on_copy)]
|
||||
#[allow(clippy::unit_arg, clippy::clone_on_copy)]
|
||||
let renderer_context = self.0.lock().renderer_context.clone();
|
||||
Box::new(MacWindow::open(
|
||||
handle,
|
||||
|
@ -121,7 +121,6 @@ fn run_clippy(args: ClippyArgs) -> Result<()> {
|
||||
"clippy::single_range_in_vec_init",
|
||||
"clippy::suspicious_to_owned",
|
||||
"clippy::type_complexity",
|
||||
"clippy::unit_arg",
|
||||
"clippy::unnecessary_operation",
|
||||
"clippy::unnecessary_to_owned",
|
||||
"clippy::unnecessary_unwrap",
|
||||
|
Loading…
Reference in New Issue
Block a user