mirror of
https://github.com/servo/servo.git
synced 2025-07-22 14:53:49 +01:00
clippy: Fix more clippy warnings in components/scripts/dom
(#31914)
* refrence to a reference * refrence to a reference
This commit is contained in:
parent
5aae820f6d
commit
3ddb47e902
5 changed files with 11 additions and 11 deletions
|
@ -293,7 +293,7 @@ impl Default for VertexAttribData {
|
|||
|
||||
impl VertexAttribData {
|
||||
pub fn buffer(&self) -> Option<&WebGLBuffer> {
|
||||
self.buffer.as_ref().map(|b| &**b)
|
||||
self.buffer.as_deref()
|
||||
}
|
||||
|
||||
pub fn max_vertices(&self) -> u32 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue