mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-27 12:29:21 +00:00
avoid converting types into themselves via .into() (clippy::useless-conversion)
example: let x: String = String::from("hello world").into();
This commit is contained in:
parent
83e6940efb
commit
966c23f529
24 changed files with 56 additions and 61 deletions
|
@ -124,5 +124,5 @@ fn resolve_doc_path(
|
|||
Some(Namespace::Macros) => return None,
|
||||
None => resolved.iter_items().find_map(|it| it.as_module_def_id())?,
|
||||
};
|
||||
Some(def.into())
|
||||
Some(def)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue