You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Due to macro's its sometimes not easy to adapt a warning.
This code creates the warning that the lifetime can be replaced directly:
pubfnfoo<'a>(_s:&'a str)where'a:'static {}
warning: unnecessary lifetime parameter `'a`
--> src/lib.rs:2:37
|
2 | pub fn foo<'a>(_s: &'a str) where 'a: 'static { }
| ^^
|
= help: you can use the `'static` lifetime directly, in place of `'a`
warning: `playground` (lib) generated 1 warning
Finished dev [unoptimized + debuginfo] target(s) in 1.19s
However there does not seem to be a tag that allows us to silence it.
Description
Due to macro's its sometimes not easy to adapt a warning.
This code creates the warning that the lifetime can be replaced directly:
However there does not seem to be a tag that allows us to silence it.
Version
Additional Labels
No response
The text was updated successfully, but these errors were encountered: