Skip to content

Commit dead9eb

Browse files
authored
Merge pull request #27 from jannic/fix-warnings
Fix warnings
2 parents 8eb12fa + fca7cf2 commit dead9eb

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

.cargo/config.toml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,12 @@ target = "thumbv6m-none-eabi"
2323
# script. This is usually provided by the cortex-m-rt crate, and by default
2424
# the version in that crate will include a file called `memory.x` which
2525
# describes the particular memory layout for your specific chip.
26-
# * inline-threshold=5 makes the compiler more aggressive and inlining functions
2726
# * no-vectorize-loops turns off the loop vectorizer (seeing as the M0+ doesn't
2827
# have SIMD)
2928
rustflags = [
3029
"-C", "link-arg=--nmagic",
3130
"-C", "link-arg=-Tlink.x",
3231
"-C", "link-arg=-Tdefmt.x",
33-
"-C", "inline-threshold=5",
3432
"-C", "no-vectorize-loops",
3533
]
3634

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -427,7 +427,7 @@ where
427427
}
428428
}
429429

430-
impl<'pio, P, SMI, SDA, SCL> I2C<'pio, P, SMI, SDA, SCL>
430+
impl<P, SMI, SDA, SCL> I2C<'_, P, SMI, SDA, SCL>
431431
where
432432
P: PIOExt,
433433
SMI: StateMachineIndex,

0 commit comments

Comments
 (0)