clippy: remove unneeded return statements (#31923)

This commit is contained in:
Azhar Ismagulova 2024-03-28 16:17:47 +00:00 committed by GitHub
parent 7349ce5b6a
commit 0728378424
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
10 changed files with 15 additions and 19 deletions

View file

@ -602,7 +602,7 @@ fn get_proto_id_for_new_target(new_target: HandleObject) -> Option<PrototypeList
let dom_class = &(*domjsclass).dom_class;
return Some(dom_class.interface_chain[dom_class.depth as usize]);
}
return None;
None
}
}
@ -698,6 +698,6 @@ pub fn get_desired_proto(
}
maybe_wrap_object(*cx, desired_proto);
return Ok(());
Ok(())
}
}

View file

@ -448,7 +448,7 @@ impl DOMString {
return Some(val);
}
}
return None;
None
}
/// <https://html.spec.whatwg.org/multipage/#best-representation-of-the-number-as-a-floating-point-number>

View file

@ -107,7 +107,7 @@ unsafe fn write_blob(
"Writing structured data for a blob failed in {:?}.",
owner.get_url()
);
return false;
false
}
unsafe extern "C" fn read_callback(
@ -134,7 +134,7 @@ unsafe extern "C" fn read_callback(
&mut *(closure as *mut StructuredDataHolder),
);
}
return ptr::null_mut();
ptr::null_mut()
}
unsafe extern "C" fn write_callback(