Skip to content

Commit

Permalink
Remove unneeded clone
Browse files Browse the repository at this point in the history
  • Loading branch information
LinusCDE committed Feb 8, 2022
1 parent 09fd60e commit a6d3fa2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/framebuffer/remarkable.rs
Original file line number Diff line number Diff line change
Expand Up @@ -383,7 +383,7 @@ impl Framebuffer for RemarkableFramebuffer {
let frame_length = (self.fb.fix_screen_info.line_length * self.fb.var_screen_info.yres) as usize;
let mem_map = MmapOptions::new()
.len(frame_length)
.map_raw(device.clone())
.map_raw(device)
.expect("Unable to map provided path");
self.fb.frame = mem_map;
}
Expand Down

0 comments on commit a6d3fa2

Please sign in to comment.