mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-30 05:45:12 +00:00
ide-diagnostics: Fix warnings about clippy str_to_string
rule
This commit is contained in:
parent
eba1b13295
commit
d00f1c1b16
22 changed files with 36 additions and 36 deletions
|
@ -16,7 +16,7 @@ pub(crate) fn inactive_code(
|
|||
}
|
||||
|
||||
let inactive = DnfExpr::new(d.cfg.clone()).why_inactive(&d.opts);
|
||||
let mut message = "code is inactive due to #[cfg] directives".to_string();
|
||||
let mut message = "code is inactive due to #[cfg] directives".to_owned();
|
||||
|
||||
if let Some(inactive) = inactive {
|
||||
let inactive_reasons = inactive.to_string();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue