Skip to content

refactor: enhance event system rust apis #1001

refactor: enhance event system rust apis

refactor: enhance event system rust apis #1001

This check has been archived and is scheduled for deletion. Learn more about checks retention
GitHub Actions / empty failed Oct 10, 2023 in 1s

empty

1 error

Details

Results

Message level Amount
Internal compiler error 0
Error 1
Warning 0
Note 0
Help 0

Versions

  • rustc 1.73.0 (cc66ad468 2023-10-03)
  • cargo 1.73.0 (9c4383fb5 2023-08-26)
  • clippy 0.1.73 (cc66ad4 2023-10-03)

Annotations

Check failure on line 189 in core/tauri/src/event/listener.rs

See this annotation in the file changed.

@github-actions github-actions / empty

redundant closure

error: redundant closure
   --> core/tauri/src/event/listener.rs:189:49
    |
189 |             .filter(|h| h.1.window.as_ref().map(|w| filter(w)).unwrap_or(true))
    |                                                 ^^^^^^^^^^^^^ help: replace the closure with the function itself: `filter`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_closure
    = note: `-D clippy::redundant-closure` implied by `-D warnings`