mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-30 22:01:37 +00:00
Add semicolons for consistency
`clippy::semicolon_if_nothing_returned`
This commit is contained in:
parent
60c5449120
commit
55c0b86cde
46 changed files with 151 additions and 151 deletions
|
@ -63,7 +63,7 @@ impl<T> Eq for Idx<T> {}
|
|||
|
||||
impl<T> Hash for Idx<T> {
|
||||
fn hash<H: Hasher>(&self, state: &mut H) {
|
||||
self.raw.hash(state)
|
||||
self.raw.hash(state);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -71,7 +71,7 @@ impl<T> fmt::Debug for Idx<T> {
|
|||
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
|
||||
let mut type_name = std::any::type_name::<T>();
|
||||
if let Some(idx) = type_name.rfind(':') {
|
||||
type_name = &type_name[idx + 1..]
|
||||
type_name = &type_name[idx + 1..];
|
||||
}
|
||||
write!(f, "Idx::<{}>({})", type_name, self.raw)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue