diff options
author | Richard Dushime <45734838+richarddushime@users.noreply.github.com> | 2024-03-19 19:05:56 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-19 16:05:56 +0000 |
commit | 01ca220f83f549d03da566f4becdf826819747ae (patch) | |
tree | 43e7fb2dda3e536ce7e0d0427739a2fd70b78deb /components/script/dom/webglframebuffer.rs | |
parent | 676f655647fe261c9a9f005122cbbca0263a2625 (diff) | |
download | servo-01ca220f83f549d03da566f4becdf826819747ae.tar.gz servo-01ca220f83f549d03da566f4becdf826819747ae.zip |
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>
Diffstat (limited to 'components/script/dom/webglframebuffer.rs')
-rw-r--r-- | components/script/dom/webglframebuffer.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/components/script/dom/webglframebuffer.rs b/components/script/dom/webglframebuffer.rs index 70cf84cdf11..be9579adee7 100644 --- a/components/script/dom/webglframebuffer.rs +++ b/components/script/dom/webglframebuffer.rs @@ -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); } |