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
When using %? to format a string arg to fmt!(), any single-quotes in the string are escaped, even though single-quotes are not special characters within double-quoted strings.
printfln!("%?", "foo 'bar'");
prints
"foo \'bar\'"
The text was updated successfully, but these errors were encountered:
…pub-crate, r=llogiq
ignore `redundant_pub_crate` in `useless_attribute`
changelog: [`useless_attribute`] no longer lints [`redundant_pub_crate`]
As mentioned in rust-lang/rust-clippy#8732 (comment)
> And it turns out I can't even explicitly allow it at the usage site, because then `clippy::useless_attribute` fires (which would also be a FP?), which is deny-by-default.
>
> Though it does work if I then allow `clippy::useless_attribute`. 😂
>
> ```rust
> #[allow(clippy::useless_attribute)]
> #[allow(clippy::redundant_pub_crate)]
> pub(crate) use bit;
> ```
>
> The originally-reported warning now no longer occurs.
When using
%?
to format a string arg tofmt!()
, any single-quotes in the string are escaped, even though single-quotes are not special characters within double-quoted strings.prints
The text was updated successfully, but these errors were encountered: