mirror of
https://github.com/servo/servo.git
synced 2025-08-02 12:10:29 +01:00
clippy: fix some warnings in components/script (#31865)
This commit is contained in:
parent
58f170c97a
commit
188f3caff1
10 changed files with 16 additions and 16 deletions
|
@ -234,7 +234,7 @@ impl ErrorInfo {
|
|||
if let Some(info) = ErrorInfo::from_dom_exception(object, cx) {
|
||||
return Some(info);
|
||||
}
|
||||
return None;
|
||||
None
|
||||
}
|
||||
|
||||
unsafe fn from_value(value: HandleValue, cx: *mut JSContext) -> ErrorInfo {
|
||||
|
|
|
@ -502,7 +502,7 @@ fn define_name(cx: SafeJSContext, obj: HandleObject, name: &[u8]) {
|
|||
*cx,
|
||||
obj,
|
||||
b"name\0".as_ptr() as *const libc::c_char,
|
||||
name.handle().into(),
|
||||
name.handle(),
|
||||
JSPROP_READONLY as u32
|
||||
));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue