Skip to content

Commit 20879f7

Browse files
committed
build(Timer): Add clippy allow for Timer::new()
1 parent 6437586 commit 20879f7

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/timer.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ pub struct Timer<Type, State, Clock: crate::Clock, Dur: Duration> {
3535

3636
impl<Clock: crate::Clock, Dur: Duration> Timer<param::None, param::None, Clock, Dur> {
3737
/// Construct a new, `OneShot` `Timer`
38+
#[allow(clippy::new_ret_no_self)]
3839
pub fn new() -> Timer<OneShot, Disarmed, Clock, Dur> {
3940
Timer::<OneShot, Disarmed, Clock, Dur> {
4041
duration: Option::None,

0 commit comments

Comments
 (0)