aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/webglprogram.rs
diff options
context:
space:
mode:
Diffstat (limited to 'components/script/dom/webglprogram.rs')
-rw-r--r--components/script/dom/webglprogram.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/components/script/dom/webglprogram.rs b/components/script/dom/webglprogram.rs
index 486c8b4449a..9fd2d513dbf 100644
--- a/components/script/dom/webglprogram.rs
+++ b/components/script/dom/webglprogram.rs
@@ -363,7 +363,7 @@ impl WebGLProgram {
.active_attribs
.borrow()
.iter()
- .find(|attrib| attrib.name == &*name)
+ .find(|attrib| attrib.name == *name)
.map_or(-1, |attrib| attrib.location);
Ok(location)
}
@@ -478,7 +478,7 @@ impl WebGLProgram {
let validation_errors = names
.iter()
- .map(|name| validate_glsl_name(&name))
+ .map(|name| validate_glsl_name(name))
.collect::<Vec<_>>();
let first_validation_error = validation_errors.iter().find(|result| result.is_err());
if let Some(error) = first_validation_error {