mirror of
https://github.com/servo/servo.git
synced 2025-07-22 23:03:42 +01:00
clippy: Fix unneeded return statement warnings (#31776)
This commit is contained in:
parent
d63615354c
commit
15bf32a4e6
19 changed files with 31 additions and 38 deletions
|
@ -81,7 +81,7 @@ unsafe fn gen_type_error(global: &GlobalScope, string: String) -> RethrowError {
|
|||
rooted!(in(*GlobalScope::get_cx()) let mut thrown = UndefinedValue());
|
||||
Error::Type(string).to_jsval(*GlobalScope::get_cx(), global, thrown.handle_mut());
|
||||
|
||||
return RethrowError(RootedTraceableBox::from_box(Heap::boxed(thrown.get())));
|
||||
RethrowError(RootedTraceableBox::from_box(Heap::boxed(thrown.get())))
|
||||
}
|
||||
|
||||
#[derive(JSTraceable)]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue