diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2020-03-04 20:47:05 +0100 |
|---|---|---|
| committer | Matthias Krüger <matthias.krueger@famsik.de> | 2020-03-04 20:47:05 +0100 |
| commit | 80ed505c41319f2fbbc7e97189e62b38c47b5a70 (patch) | |
| tree | c02fa46f66014a07df55694a22cbe07b46716b7e /src/librustc_errors | |
| parent | d8d2004c6ffb8b66eac90e75aa23012130adf9f9 (diff) | |
Use single-char patter on {ends,starts}_with and remove clone on copy type.
These were introduced since I last fixed most of these occurences. (clippy::clone_on_copy, clippy::single_char_pattern)
Diffstat (limited to 'src/librustc_errors')
| -rw-r--r-- | src/librustc_errors/registry.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librustc_errors/registry.rs b/src/librustc_errors/registry.rs index c92a9d04775..32700c6500b 100644 --- a/src/librustc_errors/registry.rs +++ b/src/librustc_errors/registry.rs @@ -27,6 +27,6 @@ impl Registry { if !self.long_descriptions.contains_key(code) { return Err(InvalidErrorCode); } - Ok(self.long_descriptions.get(code).unwrap().clone()) + Ok(*self.long_descriptions.get(code).unwrap()) } } |
