diff options
author | Oluwatobi Sofela <60105594+oluwatobiss@users.noreply.github.com> | 2024-03-20 15:11:40 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-20 14:11:40 +0000 |
commit | 15bf32a4e615c0d663bc04a1b7b7adc038c993c5 (patch) | |
tree | 395b6a9088031535e3aca7f56c6ded6e941fb0fa /components/script/script_module.rs | |
parent | d63615354cc02ceea08aaf3727530d4afa5b1876 (diff) | |
download | servo-15bf32a4e615c0d663bc04a1b7b7adc038c993c5.tar.gz servo-15bf32a4e615c0d663bc04a1b7b7adc038c993c5.zip |
clippy: Fix unneeded return statement warnings (#31776)
Diffstat (limited to 'components/script/script_module.rs')
-rw-r--r-- | components/script/script_module.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/components/script/script_module.rs b/components/script/script_module.rs index d6fe61e9653..870c44a39a7 100644 --- a/components/script/script_module.rs +++ b/components/script/script_module.rs @@ -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)] |