clippy++
This commit is contained in:
@@ -46,7 +46,7 @@ impl Default for BoundSurface<Rc<RefCell<ShaderBinding>>>{
|
||||
|
||||
impl Surface for BoundSurface<Rc<RefCell<ShaderBinding>>> {
|
||||
fn rect(&self) -> Rectangle<Virtual> {
|
||||
self.binding.borrow().rect.clone()
|
||||
self.binding.borrow().rect
|
||||
}
|
||||
|
||||
fn with_shader<F: FnMut(&dyn Shader)>(&self, mut f: F) {
|
||||
@@ -64,7 +64,7 @@ impl Surface for BoundSurface<Rc<RefCell<ShaderBinding>>> {
|
||||
}
|
||||
|
||||
fn set_rect(&mut self, rect: &Rectangle<Virtual>) {
|
||||
self.binding.borrow_mut().rect = rect.clone();
|
||||
self.binding.borrow_mut().rect = *rect;
|
||||
}
|
||||
|
||||
fn opacity(&self) -> u8 {
|
||||
|
Reference in New Issue
Block a user