From 02b7754f9e7c01048581a283ced85183cc34a61f Mon Sep 17 00:00:00 2001 From: Matthias Krüger Date: Tue, 3 Aug 2021 07:24:31 +0200 Subject: don't use .into() to convert types to identical types (clippy::useless_conversion) Example: let _x: String = String::from("hello world").into(); --- src/librustdoc/html/render/cache.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/librustdoc/html/render') diff --git a/src/librustdoc/html/render/cache.rs b/src/librustdoc/html/render/cache.rs index 0734d2670cc..1c083522bea 100644 --- a/src/librustdoc/html/render/cache.rs +++ b/src/librustdoc/html/render/cache.rs @@ -42,7 +42,7 @@ crate fn build_index<'tcx>(krate: &clean::Crate, cache: &mut Cache, tcx: TyCtxt< name: item.name.unwrap().to_string(), path: fqp[..fqp.len() - 1].join("::"), desc, - parent: Some(did.into()), + parent: Some(did), parent_idx: None, search_type: get_index_search_type(&item, tcx), aliases: item.attrs.get_doc_aliases(), -- cgit 1.4.1-3-g733a5