Skip to content

Commit 28286b3

Browse files
committed
Fix clippy warnings
These were identified by current beta clippy (1.38): - `ONCE_INIT` is now deprecated. - Superfluous `'static` lifetime on static variable.
1 parent 838ece1 commit 28286b3

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

examples/zguide/fileio3/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ use tempfile::tempfile;
1414
use zmq::SNDMORE;
1515

1616
static CHUNK_SIZE: usize = 250_000;
17-
static CHUNK_SIZE_STR: &'static str = "250000";
17+
static CHUNK_SIZE_STR: &str = "250000";
1818
static PIPELINE: usize = 10;
1919
static PIPELINE_HWM: usize = 20;
2020

tests/common/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22

33
pub extern crate timebomb;
44

5-
use std::sync::{Once, ONCE_INIT};
5+
use std::sync::Once;
66

7-
static LOGGER_INIT: Once = ONCE_INIT;
7+
static LOGGER_INIT: Once = Once::new();
88

99
#[macro_export]
1010
macro_rules! test {

0 commit comments

Comments
 (0)