embassy-rs / embassy

Modern embedded framework, using Rust and async.
https://embassy.dev
Apache License 2.0
5.22k stars 720 forks source link

unnecessary lifetime parameter `'a` #801

Closed risingtiger closed 2 years ago

risingtiger commented 2 years ago

When compiling I'm getting this error:

warning: unnecessary lifetime parameter 'a --> ../../embassy/embassy-hal-common/src/peripheral.rs:68:9 68 'a: 'static, ^^

= help: you can use the 'static lifetime directly, in place of 'a

warning: embassy-hal-common (lib) generated 1 warning

Any idea how to suppress that error or temporarily change the file to suppress it?

risingtiger commented 2 years ago

awesome. quick fix, works great