mirror of
https://github.com/servo/servo.git
synced 2025-08-05 21:50:18 +01:00
clippy: Fix many warnings in components/script
(#31717)
* Fix Several clippy warnings * Fix Build errors * Fix Unused import * Fix requested changes * Fix rustfmt * Minor fixes --------- Co-authored-by: Martin Robinson <mrobinson@igalia.com>
This commit is contained in:
parent
676f655647
commit
01ca220f83
41 changed files with 200 additions and 212 deletions
|
@ -62,10 +62,10 @@ impl WebGLFramebufferAttachment {
|
|||
fn root(&self) -> WebGLFramebufferAttachmentRoot {
|
||||
match *self {
|
||||
WebGLFramebufferAttachment::Renderbuffer(ref rb) => {
|
||||
WebGLFramebufferAttachmentRoot::Renderbuffer(DomRoot::from_ref(&rb))
|
||||
WebGLFramebufferAttachmentRoot::Renderbuffer(DomRoot::from_ref(rb))
|
||||
},
|
||||
WebGLFramebufferAttachment::Texture { ref texture, .. } => {
|
||||
WebGLFramebufferAttachmentRoot::Texture(DomRoot::from_ref(&texture))
|
||||
WebGLFramebufferAttachmentRoot::Texture(DomRoot::from_ref(texture))
|
||||
},
|
||||
}
|
||||
}
|
||||
|
@ -421,7 +421,7 @@ impl WebGLFramebuffer {
|
|||
let attachment = attachment.borrow();
|
||||
let constraints = color_constraints.clone();
|
||||
if let Err(errnum) =
|
||||
self.check_attachment_constraints(&*attachment, constraints, &mut fb_size)
|
||||
self.check_attachment_constraints(&attachment, constraints, &mut fb_size)
|
||||
{
|
||||
return self.status.set(errnum);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue