| commit | 9e72af2593ceb76ccde7710408f1177635697ece | [log] [tgz] |
|---|---|---|
| author | Martin Tzvetanov Grigorov <mgrigorov@apache.org> | Mon Feb 26 13:24:43 2024 +0200 |
| committer | Martin Tzvetanov Grigorov <mgrigorov@apache.org> | Mon Feb 26 13:27:10 2024 +0200 |
| tree | b66a9add5380f65ca63ad2db8e92df6317b8fbef | |
| parent | 3896038a3b086f35dcc553992b91a1a0b2a0ed9b [diff] |
NO-JIRA: [Rust] Fix build errors with 1.78.0-nightly (0ecbd0605 2024-02-25)
Extract the test trait impls out of the test function body.
No user facing changes!
```
error: non-local `impl` definition, they should be avoided as they go against expectation
--> avro/tests/validators.rs:42:5
|
42 | / impl SchemaNamespaceValidator for CustomValidator {
43 | | fn validate(&self, _ns: &str) -> AvroResult<()> {
44 | | Ok(())
45 | | }
46 | | }
| |_____^
|
= help: move this `impl` block outside the of the current function `avro_3900_custom_validator_with_spec_invalid_names`
= 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 <https://github.com/rust-lang/rust/issues/120363>
```
Signed-off-by: Martin Tzvetanov Grigorov <mgrigorov@apache.org>
Apache Avro™ is a data serialization system.
Learn more about Avro, please visit our website at:
To contribute to Avro, please read:
https://cwiki.apache.org/confluence/display/AVRO/How+To+Contribute
You can use devcontainers to develop Avro:
Apache®, Apache Avro and the Apache Avro airplane logo are trademarks of The Apache Software Foundation.
The Apache Avro airplane logo on this page has been designed by Emma Kellam for use by this project.