This is an automated email from the ASF dual-hosted git repository. mgrigorov pushed a commit to branch pedantic-clippy in repository https://gitbox.apache.org/repos/asf/avro-rs.git
commit 781e322a7e3b55614c835028c31a4d759465377c Author: Martin Tzvetanov Grigorov <[email protected]> AuthorDate: Mon Mar 30 17:05:55 2026 +0300 Remove `#[inline]`s Clippy asked to add them. Kriskras99 asked to remove them. --- avro_test_helper/src/data.rs | 2 -- avro_test_helper/src/lib.rs | 3 --- avro_test_helper/src/logger.rs | 1 - 3 files changed, 6 deletions(-) diff --git a/avro_test_helper/src/data.rs b/avro_test_helper/src/data.rs index b0999d7..18a4310 100644 --- a/avro_test_helper/src/data.rs +++ b/avro_test_helper/src/data.rs @@ -602,7 +602,6 @@ pub const LOCAL_TIMESTAMPMICROS_LOGICAL_TYPE: &[(&str, bool)] = &[ ), ]; -#[inline] pub fn examples() -> &'static Vec<(&'static str, bool)> { static EXAMPLES_ONCE: OnceLock<Vec<(&'static str, bool)>> = OnceLock::new(); EXAMPLES_ONCE.get_or_init(|| { @@ -630,7 +629,6 @@ pub fn examples() -> &'static Vec<(&'static str, bool)> { }) } -#[inline] pub fn valid_examples() -> &'static Vec<(&'static str, bool)> { static VALID_EXAMPLES_ONCE: OnceLock<Vec<(&'static str, bool)>> = OnceLock::new(); VALID_EXAMPLES_ONCE.get_or_init(|| examples().iter().copied().filter(|s| s.1).collect()) diff --git a/avro_test_helper/src/lib.rs b/avro_test_helper/src/lib.rs index f036187..686d96f 100644 --- a/avro_test_helper/src/lib.rs +++ b/avro_test_helper/src/lib.rs @@ -52,7 +52,6 @@ fn after_all() { } /// A custom error type for tests. -#[non_exhaustive] #[derive(Debug)] pub struct TestError; @@ -64,7 +63,6 @@ pub struct TestError; // apply to `TestError` itself. impl<Err: Display + Debug> From<Err> for TestError { #[track_caller] - #[inline] fn from(err: Err) -> Self { panic!("{}: {:?}", type_name::<Err>(), err); } @@ -75,5 +73,4 @@ pub type TestResult = Result<(), TestError>; /// Does nothing. Just loads the crate. /// Should be used in the integration tests, because they do not use [dev-dependencies] /// and do not auto-load this crate. -#[inline] pub const fn init() {} diff --git a/avro_test_helper/src/logger.rs b/avro_test_helper/src/logger.rs index 79af9bb..52169d7 100644 --- a/avro_test_helper/src/logger.rs +++ b/avro_test_helper/src/logger.rs @@ -26,7 +26,6 @@ struct TestLogger { } impl Log for TestLogger { - #[inline] fn enabled(&self, _metadata: &Metadata) -> bool { true }
