We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1123ed8 commit 6eadb86Copy full SHA for 6eadb86
components/shared/webrender/rendering_context.rs
@@ -169,7 +169,7 @@ impl RenderingContext {
169
170
/// Invoke a closure with the surface associated with the current front buffer.
171
/// This can be used to create a surfman::SurfaceTexture to blit elsewhere.
172
- pub fn with_front_buffer<F: FnMut(&Device, Surface) -> Surface>(&self, mut f: F) {
+ pub fn with_front_buffer<F: FnOnce(&Device, Surface) -> Surface>(&self, f: F) {
173
let device = &mut self.0.device.borrow_mut();
174
let context = &mut self.0.context.borrow_mut();
175
let surface = device
0 commit comments