This repository has been archived by the owner on Mar 25, 2024. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Resolve non_local_definitions warning in test
warning: non-local `impl` definition, they should be avoided as they go against expectation --> tests/test_error.rs:412:13 | 412 | / impl<'de> Visitor<'de> for X { 413 | | type Value = X; 414 | | 415 | | fn expecting(&self, formatter: &mut fmt::Formatter) -> fmt::Result { ... | 429 | | } 430 | | } | |_____________^ | = help: move this `impl` block outside the of the current associated function `deserialize` and up 2 bodies = note: an `impl` definition is non-local if it is nested inside an item and neither the type nor the trait are at the same nesting level as the `impl` block = note: one exception to the rule are anon-const (`const _: () = { ... }`) at top-level module and anon-const at the same nesting as the trait or type = note: this lint may become deny-by-default in the edition 2024 and higher, see the tracking issue <rust-lang/rust#120363> = note: `#[warn(non_local_definitions)]` on by default
- Loading branch information