Skip to content

Commit 57ff955

Browse files
committed
In examples, allow the static_mut_refs lint
For the future, need to investigate: * How to implement DMA without requiring the lifetime of the buffer to be 'static * How to specific the link_section of non-static buffers
1 parent 5166da8 commit 57ff955

13 files changed

+13
-0
lines changed

examples/dma.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
//! Example of Memory to Memory Transfer with the DMA
22
33
#![deny(warnings)]
4+
#![allow(static_mut_refs)]
45
#![no_main]
56
#![no_std]
67

examples/ethernet-nucleo-h743zi2.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
//! This demo does not use smoltcp - see the ethernet-rtic-stm32h747i-disco demo
1010
//! for an example of smoltcp
1111
#![deny(warnings)]
12+
#![allow(static_mut_refs)]
1213
#![no_main]
1314
#![no_std]
1415

examples/i2c4_bdma.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
//!
44
55
#![deny(warnings)]
6+
#![allow(static_mut_refs)]
67
#![no_std]
78
#![no_main]
89

examples/mdma.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
//! Example of Memory to Memory Transfer with the Master DMA (MDMA)
22
33
#![deny(warnings)]
4+
#![allow(static_mut_refs)]
45
#![no_main]
56
#![no_std]
67

examples/mdma_bursts.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
//! beats/burst. The latter gives an approximately 25% speedup.
77
88
#![deny(warnings)]
9+
#![allow(static_mut_refs)]
910
#![no_main]
1011
#![no_std]
1112

examples/sai_dma_passthru.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
44
#![allow(unused_macros)]
55
#![deny(warnings)]
6+
#![allow(static_mut_refs)]
67
#![no_main]
78
#![no_std]
89

examples/serial-dma.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
//! the transfer.
99
1010
#![deny(warnings)]
11+
#![allow(static_mut_refs)]
1112
#![no_main]
1213
#![no_std]
1314

examples/spi-dma-rtic.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
//!
44
//! This example demonstrates using DMA to write data over a TX-only SPI interface.
55
#![deny(warnings)]
6+
#![allow(static_mut_refs)]
67
#![allow(clippy::type_complexity)]
78
#![no_main]
89
#![no_std]

examples/spi-dma.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
//! the transfer.
99
1010
#![deny(warnings)]
11+
#![allow(static_mut_refs)]
1112
#![no_main]
1213
#![no_std]
1314

examples/usb_passthrough.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
//! This example uses both USB1 and USB2. This is only possible on devices that
66
//! have the USB2 peripheral.
77
#![deny(warnings)]
8+
#![allow(static_mut_refs)]
89
#![no_std]
910
#![no_main]
1011

0 commit comments

Comments
 (0)