8000 clippy: -D clippy::needless_lifetimes by bradjc · Pull Request #3674 · tock/tock · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

clippy: -D clippy::needless_lifetimes #3674

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Sep 18, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion boards/nano_rp2040_connect/src/io.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ impl Writer {
self.uart.set(uart);
}

fn write_to_uart<'a>(&self, uart: &'a Uart, buf: &[u8]) {
fn write_to_uart(&self, uart: &Uart, buf: &[u8]) {
for &c in buf {
uart.send_byte(c);
}
Expand Down
4 changes: 2 additions & 2 deletions boards/pico_explorer_base/src/io.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ impl Writer {
self.uart.set(uart);
}

fn configure_uart<'a>(&self, uart: &'a Uart) {
fn configure_uart(&self, uart: &Uart) {
if !uart.is_configured() {
let parameters = Parameters {
baud_rate: 115200,
Expand All @@ -46,7 +46,7 @@ impl Writer {
}
}

fn write_to_uart<'a>(&self, uart: &'a Uart, buf: &[u8]) {
fn write_to_uart(&self, uart: &Uart, buf: &[u8]) {
for &c in buf {
uart.send_byte(c);
}
Expand Down
4 changes: 2 additions & 2 deletions boards/raspberry_pi_pico/src/io.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ impl Writer {
self.uart.set(uart);
}

fn configure_uart<'a>(&self, uart: &'a Uart) {
fn configure_uart(&self, uart: &Uart) {
if !uart.is_configured() {
let parameters = Parameters {
baud_rate: 115200,
Expand All @@ -46,7 +46,7 @@ impl Writer {
}
}

fn write_to_uart<'a>(&self, uart: &'a Uart, buf: &[u8]) {
fn write_to_uart(&self, uart: &Uart, buf: &[u8]) {
for &c in buf {
uart.send_byte(c);
}
Expand Down
1 change: 0 additions & 1 deletion tools/run_clippy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@ CLIPPY_ARGS_COMPLEXITY="


-A clippy::unnecessary_unwrap
-A clippy::needless_lifetimes
-A clippy::explicit_auto_deref
-A clippy::explicit_counter_loop
-A clippy::borrow_deref_ref
Expand Down
0