diff options
| author | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2025-01-14 23:32:17 +0100 |
|---|---|---|
| committer | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2025-01-14 23:32:17 +0100 |
| commit | 62d5562bc6ff3063f41e4712304484ab63399225 (patch) | |
| tree | bcb8710690dc6681ebdf398b5eeb1b60c3479370 /src/librustdoc/clean/utils.rs | |
| parent | c074d8eee765cfd64e6e143d2894c85c7f3ddc1d (diff) | |
| download | rust-62d5562bc6ff3063f41e4712304484ab63399225.tar.gz rust-62d5562bc6ff3063f41e4712304484ab63399225.zip | |
Fix clippy lints
Diffstat (limited to 'src/librustdoc/clean/utils.rs')
| -rw-r--r-- | src/librustdoc/clean/utils.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librustdoc/clean/utils.rs b/src/librustdoc/clean/utils.rs index 99e88f878fb..80dc6b7250c 100644 --- a/src/librustdoc/clean/utils.rs +++ b/src/librustdoc/clean/utils.rs @@ -320,7 +320,7 @@ pub(crate) fn name_from_pat(p: &hir::Pat<'_>) -> Symbol { ); return Symbol::intern("()"); } - PatKind::Guard(p, _) => return name_from_pat(&*p), + PatKind::Guard(p, _) => return name_from_pat(p), PatKind::Range(..) => return kw::Underscore, PatKind::Slice(begin, ref mid, end) => { let begin = begin.iter().map(|p| name_from_pat(p).to_string()); |
