Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 31c808b

Browse filesBrowse files
committed
Make clippy happy
1 parent ff91980 commit 31c808b
Copy full SHA for 31c808b

File tree

13 files changed

+13
-13
lines changed
Filter options

13 files changed

+13
-13
lines changed

‎boards/adafruit-feather-rp2040/examples/adafruit_feather_neopixel_rainbow.rs

Copy file name to clipboardExpand all lines: boards/adafruit-feather-rp2040/examples/adafruit_feather_neopixel_rainbow.rs
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ fn main() -> ! {
5151
);
5252

5353
let timer = Timer::new(pac.TIMER, &mut pac.RESETS, &clocks);
54-
let mut delay = timer.clone();
54+
let mut delay = timer;
5555

5656
// Configure the addressable LED
5757
let (mut pio, sm0, _, _, _) = pac.PIO0.split(&mut pac.RESETS);

‎boards/adafruit-itsy-bitsy-rp2040/examples/adafruit_itsy_bitsy_rainbow.rs

Copy file name to clipboardExpand all lines: boards/adafruit-itsy-bitsy-rp2040/examples/adafruit_itsy_bitsy_rainbow.rs
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ fn main() -> ! {
5353
.into_push_pull_output_in_state(PinState::High);
5454

5555
let timer = Timer::new(pac.TIMER, &mut pac.RESETS, &clocks);
56-
let mut delay = timer.clone();
56+
let mut delay = timer;
5757

5858
let (mut pio, sm0, _, _, _) = pac.PIO0.split(&mut pac.RESETS);
5959
let mut ws = Ws2812::new(

‎boards/adafruit-kb2040/examples/adafruit_kb2040_rainbow.rs

Copy file name to clipboardExpand all lines: boards/adafruit-kb2040/examples/adafruit_kb2040_rainbow.rs
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ fn main() -> ! {
6363
);
6464

6565
let timer = Timer::new(pac.TIMER, &mut pac.RESETS, &clocks);
66-
let mut delay = timer.clone();
66+
let mut delay = timer;
6767

6868
// Configure the addressable LED
6969
let (mut pio, sm0, _, _, _) = pac.PIO0.split(&mut pac.RESETS);

‎boards/adafruit-metro-rp2040/examples/adafruit_metro_rainbow.rs

Copy file name to clipboardExpand all lines: boards/adafruit-metro-rp2040/examples/adafruit_metro_rainbow.rs
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ fn main() -> ! {
4949
let led = pins.neopixel_data.into_function();
5050

5151
let timer = Timer::new(pac.TIMER, &mut pac.RESETS, &clocks);
52-
let mut delay = timer.clone();
52+
let mut delay = timer;
5353

5454
let (mut pio, sm0, _, _, _) = pac.PIO0.split(&mut pac.RESETS);
5555
let mut ws = Ws2812::new(

‎boards/adafruit-qt-py-rp2040/examples/adafruit_qt_py_rp2040_rainbow.rs

Copy file name to clipboardExpand all lines: boards/adafruit-qt-py-rp2040/examples/adafruit_qt_py_rp2040_rainbow.rs
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ fn main() -> ! {
5353
.into_push_pull_output_in_state(PinState::High);
5454

5555
let timer = Timer::new(pac.TIMER, &mut pac.RESETS, &clocks);
56-
let mut delay = timer.clone();
56+
let mut delay = timer;
5757

5858
let (mut pio, sm0, _, _, _) = pac.PIO0.split(&mut pac.RESETS);
5959
let mut ws = Ws2812::new(

‎boards/adafruit-trinkey-qt2040/examples/adafruit_trinkey_qt2040_rainbow.rs

Copy file name to clipboardExpand all lines: boards/adafruit-trinkey-qt2040/examples/adafruit_trinkey_qt2040_rainbow.rs
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ fn main() -> ! {
6363
);
6464

6565
let timer = Timer::new(pac.TIMER, &mut pac.RESETS, &clocks);
66-
let mut delay = timer.clone();
66+
let mut delay = timer;
6767

6868
// Configure the addressable LED
6969
let (mut pio, sm0, _, _, _) = pac.PIO0.split(&mut pac.RESETS);

‎boards/boardsource-blok/examples/blok_rainbow.rs

Copy file name to clipboardExpand all lines: boards/boardsource-blok/examples/blok_rainbow.rs
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ fn main() -> ! {
5454
);
5555

5656
let timer = Timer::new(pac.TIMER, &mut pac.RESETS, &clocks);
57-
let mut delay = timer.clone();
57+
let mut delay = timer;
5858

5959
// Configure the addressable LED
6060
let (mut pio, sm0, _, _, _) = pac.PIO0.split(&mut pac.RESETS);

‎boards/pimoroni-servo2040/examples/pimoroni_servo2040_rainbow.rs

Copy file name to clipboardExpand all lines: boards/pimoroni-servo2040/examples/pimoroni_servo2040_rainbow.rs
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ fn main() -> ! {
4747
);
4848

4949
let timer = Timer::new(pac.TIMER, &mut pac.RESETS, &clocks);
50-
let mut delay = timer.clone();
50+
let mut delay = timer;
5151

5252
// Configure the addressable LED
5353
let (mut pio, sm0, _, _, _) = pac.PIO0.split(&mut pac.RESETS);

‎boards/solderparty-rp2040-stamp/examples/solderparty_stamp_neopixel_rainbow.rs

Copy file name to clipboardExpand all lines: boards/solderparty-rp2040-stamp/examples/solderparty_stamp_neopixel_rainbow.rs
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ fn main() -> ! {
5151
);
5252

5353
let timer = Timer::new(pac.TIMER, &mut pac.RESETS, &clocks);
54-
let mut delay = timer.clone();
54+
let mut delay = timer;
5555

5656
// Configure the addressable LED
5757
let (mut pio, sm0, _, _, _) = pac.PIO0.split(&mut pac.RESETS);

‎boards/sparkfun-pro-micro-rp2040/examples/sparkfun_pro_micro_rainbow.rs

Copy file name to clipboardExpand all lines: boards/sparkfun-pro-micro-rp2040/examples/sparkfun_pro_micro_rainbow.rs
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ fn main() -> ! {
6363
);
6464

6565
let timer = Timer::new(pac.TIMER, &mut pac.RESETS, &clocks);
66-
let mut delay = timer.clone();
66+
let mut delay = timer;
6767

6868
// Configure the addressable LED
6969
let (mut pio, sm0, _, _, _) = pac.PIO0.split(&mut pac.RESETS);

‎boards/sparkfun-thing-plus-rp2040/examples/sparkfun_thing_plus_rainbow.rs

Copy file name to clipboardExpand all lines: boards/sparkfun-thing-plus-rp2040/examples/sparkfun_thing_plus_rainbow.rs
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ fn main() -> ! {
6262
);
6363

6464
let timer = Timer::new(pac.TIMER, &mut pac.RESETS, &clocks);
65-
let mut delay = timer.clone();
65+
let mut delay = timer;
6666

6767
// Configure the addressable LED
6868
let (mut pio, sm0, _, _, _) = pac.PIO0.split(&mut pac.RESETS);

‎boards/vcc-gnd-yd-rp2040/examples/yd_rp2040_neopixel_rainbow.rs

Copy file name to clipboardExpand all lines: boards/vcc-gnd-yd-rp2040/examples/yd_rp2040_neopixel_rainbow.rs
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ fn main() -> ! {
5151
);
5252

5353
let timer = Timer::new(pac.TIMER, &mut pac.RESETS, &clocks);
54-
let mut delay = timer.clone();
54+
let mut delay = timer;
5555

5656
// Configure the addressable LED
5757
let (mut pio, sm0, _, _, _) = pac.PIO0.split(&mut pac.RESETS);

‎boards/waveshare-rp2040-zero/examples/waveshare_rp2040_zero_neopixel_rainbow.rs

Copy file name to clipboardExpand all lines: boards/waveshare-rp2040-zero/examples/waveshare_rp2040_zero_neopixel_rainbow.rs
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ fn main() -> ! {
5151
);
5252

5353
let timer = Timer::new(pac.TIMER, &mut pac.RESETS, &clocks);
54-
let mut delay = timer.clone();
54+
let mut delay = timer;
5555

5656
// Configure the addressable LED
5757
let (mut pio, sm0, _, _, _) = pac.PIO0.split(&mut pac.RESETS);

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.