You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
chore: Apply some suggestions by -Dclippy::pedantic (#514)
* chore: Apply some suggestions by -Dclippy::pedantic
`-Dclippy::pedantic` is not added to test-lang-rust-clippy.yml because
not all sugestions could be applied at the moment.
Added `-Dclippy::cargo` to CI. `multiple_crate_versions` is needed
because at the moment there are two versions of `heck` and `hashbrown`
coming as transitive dependencies
* Simplify clear_log_messages() helper method
Signed-off-by: Martin Tzvetanov Grigorov <mgrigorov@apache.org>
* Move clippy settings to Cargo.toml
Signed-off-by: Martin Tzvetanov Grigorov <mgrigorov@apache.org>
* Simplify the docstrings for logging related helper methods
Signed-off-by: Martin Tzvetanov Grigorov <mgrigorov@apache.org>
* Improve assert_not_logged() to check all messages, not just the last one
Signed-off-by: Martin Tzvetanov Grigorov <mgrigorov@apache.org>
* Add the clippy settings which were fixed to make clippy::pedantic happy
But listing them explicitly here finds many more issues.
Signed-off-by: Martin Tzvetanov Grigorov <mgrigorov@apache.org>
* Fix docstring tests
Signed-off-by: Martin Tzvetanov Grigorov <mgrigorov@apache.org>
* Disable the extra lints now
https://github.com/apache/avro-rs/actions/runs/23512928423/job/68438311919?pr=514
They will be re-enabled once #512 is merged. To avoid merge conflicts by
editing many files in two PRs
Signed-off-by: Martin Tzvetanov Grigorov <mgrigorov@apache.org>
* Improve assert_logged() to remove only one matching log message, not all
Signed-off-by: Martin Tzvetanov Grigorov <mgrigorov@apache.org>
* Simplify by using `impl AsRef<[]>`
Suggested-by: Kriskras99
* Remove `#[inline]`s
Clippy asked to add them. Kriskras99 asked to remove them.
* Update the docstring for assert_not_logged
Co-authored-by: Kriskras99 <github@kriskras99.nl>
* Hide imports from the user
Co-authored-by: Kriskras99 <github@kriskras99.nl>
---------
Signed-off-by: Martin Tzvetanov Grigorov <mgrigorov@apache.org>
Co-authored-by: Kriskras99 <github@kriskras99.nl>
let name = ::apache_avro::schema::Name::new_with_enclosing_namespace(#full_schema_name, enclosing_namespace).expect(concat!("Unable to parse schema name ", #full_schema_name));
0 commit comments