Remove needless returns detected by clippy in the compiler
This commit is contained in:
parent
adf8d168af
commit
0b20ffcb63
38 changed files with 66 additions and 75 deletions
|
@ -641,7 +641,7 @@ impl<Prov: Provenance, Extra, Bytes: AllocBytes> Allocation<Prov, Extra, Bytes>
|
|||
pub fn write_uninit(&mut self, cx: &impl HasDataLayout, range: AllocRange) -> AllocResult {
|
||||
self.mark_init(range, false);
|
||||
self.provenance.clear(range, cx)?;
|
||||
return Ok(());
|
||||
Ok(())
|
||||
}
|
||||
|
||||
/// Applies a previously prepared provenance copy.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue