mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-25 08:13:41 +00:00
Fix clippy::needless_return
This commit is contained in:
parent
ecd420636e
commit
dddcb0ad94
@ -179,6 +179,6 @@ impl<'a> Cursor<'a> {
|
|||||||
/// Check whether it is a top level
|
/// Check whether it is a top level
|
||||||
pub fn is_root(&self) -> bool {
|
pub fn is_root(&self) -> bool {
|
||||||
let entry_id = self.ptr.0;
|
let entry_id = self.ptr.0;
|
||||||
return entry_id.0 == 0;
|
entry_id.0 == 0
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user