Skip to content

Commit 6fd6ec9

Browse files
committed
chores: silence two clippy lints
1 parent ec5a021 commit 6fd6ec9

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

src/scope/real.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -223,6 +223,7 @@ impl Scope {
223223
}
224224

225225
/// Applies the contained scoped data to fill an event.
226+
#[cfg_attr(feature = "cargo-clippy", allow(cyclomatic_complexity))]
226227
pub fn apply_to_event(&self, mut event: Event<'static>) -> Option<Event<'static>> {
227228
let mut add_os = true;
228229
let mut add_rust = true;

src/test.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ pub struct TestTransport {
5656

5757
impl TestTransport {
5858
/// Creates a new test transport.
59+
#[cfg_attr(feature = "cargo-clippy", allow(new_ret_no_self))]
5960
pub fn new() -> Arc<TestTransport> {
6061
Arc::new(TestTransport {
6162
collected: Mutex::new(vec![]),

0 commit comments

Comments
 (0)