diff options
| author | Yuki Okushi <jtitor@2k36.org> | 2021-08-04 08:05:54 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-08-04 08:05:54 +0900 |
| commit | 917c047c33a0b44b5406c8aab9e47d693106cbba (patch) | |
| tree | 17051d5102ae6275250ea3bd4ef280ea84a0dbe3 /src/librustdoc/html/render | |
| parent | 75e14873b83f458841f815ccb3b7f4eac83b4327 (diff) | |
| parent | 02b7754f9e7c01048581a283ced85183cc34a61f (diff) | |
| download | rust-917c047c33a0b44b5406c8aab9e47d693106cbba.tar.gz rust-917c047c33a0b44b5406c8aab9e47d693106cbba.zip | |
Rollup merge of #87720 - matthiaskrgr:clippy_into, r=jyn514
don't use .into() to convert types to identical types (clippy::useless_conversion)
Example:
let _x: String = String::from("hello world").into();
Diffstat (limited to 'src/librustdoc/html/render')
| -rw-r--r-- | src/librustdoc/html/render/cache.rs | 2 |
1 files changed, 1 insertions, 1 deletions
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(), |
