Skip to content

In examples, disable the static-mut-refs lint #509

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

Closed
wants to merge 2 commits into from
Closed
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 .github/workflows/clippy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@master
with:
toolchain: 1.74.0
toolchain: 1.80.0
target: thumbv7em-none-eabihf
components: clippy
- uses: clechasseur/rs-clippy-check@v3
Expand Down
1 change: 1 addition & 0 deletions examples/dma.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
//! Example of Memory to Memory Transfer with the DMA

#![deny(warnings)]
#![allow(static_mut_refs)]
#![no_main]
#![no_std]

Expand Down
1 change: 1 addition & 0 deletions examples/ethernet-nucleo-h743zi2.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
//! This demo does not use smoltcp - see the ethernet-rtic-stm32h747i-disco demo
//! for an example of smoltcp
#![deny(warnings)]
#![allow(static_mut_refs)]
#![no_main]
#![no_std]

Expand Down
1 change: 1 addition & 0 deletions examples/ethernet-rtic-nucleo-h723zg.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
//!
//! `cargo flash --example ethernet-rtic-nucleo-h723zg --features=ethernet,stm32h735 --chip=STM32H723ZGTx`
#![deny(warnings)]
#![allow(static_mut_refs)]
#![no_main]
#![no_std]

Expand Down
1 change: 1 addition & 0 deletions examples/ethernet-rtic-stm32h735g-dk.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
//! The ethernet ring buffers are placed in AXI SRAM, where they can be
//! accessed by both the core and the Ethernet DMA.
#![deny(warnings)]
#![allow(static_mut_refs)]
#![no_main]
#![no_std]

Expand Down
1 change: 1 addition & 0 deletions examples/ethernet-rtic-stm32h747i-disco.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
//! The ethernet ring buffers are placed in SRAM3, where they can be
//! accessed by both the core and the Ethernet DMA.
#![deny(warnings)]
#![allow(static_mut_refs)]
#![no_main]
#![no_std]

Expand Down
1 change: 1 addition & 0 deletions examples/ethernet-stm32h747i-disco.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
//! This demo does not use smoltcp - see the ethernet-rtic-stm32h747i-disco demo
//! for an example of smoltcp
#![deny(warnings)]
#![allow(static_mut_refs)]
#![no_main]
#![no_std]

Expand Down
1 change: 1 addition & 0 deletions examples/i2c4_bdma.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
//!

#![deny(warnings)]
#![allow(static_mut_refs)]
#![no_std]
#![no_main]

Expand Down
1 change: 1 addition & 0 deletions examples/mdma.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
//! Example of Memory to Memory Transfer with the Master DMA (MDMA)

#![deny(warnings)]
#![allow(static_mut_refs)]
#![no_main]
#![no_std]

Expand Down
1 change: 1 addition & 0 deletions examples/mdma_bursts.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
//! beats/burst. The latter gives an approximately 25% speedup.

#![deny(warnings)]
#![allow(static_mut_refs)]
#![no_main]
#![no_std]

Expand Down
1 change: 1 addition & 0 deletions examples/sai_dma_passthru.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
#![allow(unused_macros)]
#![deny(warnings)]
#![allow(static_mut_refs)]
#![no_main]
#![no_std]

Expand Down
1 change: 1 addition & 0 deletions examples/serial-dma.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
//! the transfer.

#![deny(warnings)]
#![allow(static_mut_refs)]
#![no_main]
#![no_std]

Expand Down
1 change: 1 addition & 0 deletions examples/spi-dma-rtic.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
//!
//! This example demonstrates using DMA to write data over a TX-only SPI interface.
#![deny(warnings)]
#![allow(static_mut_refs)]
#![allow(clippy::type_complexity)]
#![no_main]
#![no_std]
Expand Down
1 change: 1 addition & 0 deletions examples/spi-dma.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
//! the transfer.

#![deny(warnings)]
#![allow(static_mut_refs)]
#![no_main]
#![no_std]

Expand Down
1 change: 1 addition & 0 deletions examples/usb_passthrough.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
//! This example uses both USB1 and USB2. This is only possible on devices that
//! have the USB2 peripheral.
#![deny(warnings)]
#![allow(static_mut_refs)]
#![no_std]
#![no_main]

Expand Down
1 change: 1 addition & 0 deletions examples/usb_phy_serial_interrupt.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
//! This example is for RM0433/RM0399 parts. It has been tested on the Arduino
//! Portenta H7
#![deny(warnings)]
#![allow(static_mut_refs)]
#![allow(clippy::type_complexity)]
#![no_std]
#![no_main]
Expand Down
1 change: 1 addition & 0 deletions examples/usb_rtic.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
//! NUCLEO-H743ZI2 board.
//!
#![deny(warnings)]
#![allow(static_mut_refs)]
#![no_std]
#![no_main]

Expand Down
1 change: 1 addition & 0 deletions examples/usb_serial.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
//! NUCLEO-H743ZI2 board.
//!
#![deny(warnings)]
#![allow(static_mut_refs)]
#![no_std]
#![no_main]

Expand Down
Loading