Trait methods should not take patterns like mut IDENT
as arguments
#354
Labels
ergonomics
Ease of use, developer friendliness
Refactor
Code refactor or clean up. No or little functional changes.
According to E0642 and rust-lang/rust#35203, trait methods should not take patterns as arguments, including patterns like
mut IDENT
. But Pingora is using it in several places.pingora/pingora-core/src/services/background.rs
Line 34 in b0bd0fb
pingora/pingora-core/src/apps/mod.rs
Line 48 in b0bd0fb
pingora/pingora-core/src/apps/mod.rs
Line 74 in b0bd0fb
pingora/pingora-core/src/services/mod.rs
Line 42 in b0bd0fb
Without function body,
mut
seems ineffective. Is there a good reason to keep them?Pingora info
Please include the following information about your environment:
Pingora version: commit b0bd0fb
Rust version:
cargo 1.80.1 (376290515 2024-07-16)
Operating system version: N/A
The text was updated successfully, but these errors were encountered: