mirror of
https://github.com/servo/servo.git
synced 2025-07-22 23:03:42 +01:00
Make the traits for the IDL interfaces take &self
This commit is contained in:
parent
856fda7f2e
commit
709d347872
99 changed files with 1192 additions and 1192 deletions
|
@ -38,19 +38,19 @@ impl WebGLShaderPrecisionFormat {
|
|||
}
|
||||
}
|
||||
|
||||
impl<'a> WebGLShaderPrecisionFormatMethods for &'a WebGLShaderPrecisionFormat {
|
||||
impl WebGLShaderPrecisionFormatMethods for WebGLShaderPrecisionFormat {
|
||||
// https://www.khronos.org/registry/webgl/specs/1.0/#5.12.1
|
||||
fn RangeMin(self) -> i32 {
|
||||
fn RangeMin(&self) -> i32 {
|
||||
self.range_min
|
||||
}
|
||||
|
||||
// https://www.khronos.org/registry/webgl/specs/1.0/#5.12.1
|
||||
fn RangeMax(self) -> i32 {
|
||||
fn RangeMax(&self) -> i32 {
|
||||
self.range_max
|
||||
}
|
||||
|
||||
// https://www.khronos.org/registry/webgl/specs/1.0/#5.12.1
|
||||
fn Precision(self) -> i32 {
|
||||
fn Precision(&self) -> i32 {
|
||||
self.precision
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue