Skip to content

Commit

Permalink
clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
francisdb committed Jun 13, 2024
1 parent f0cf6f7 commit 9ae8dc4
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/vpx/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -226,11 +226,7 @@ pub fn open<P: AsRef<Path>>(path: P) -> io::Result<VpxFile<File>> {
}

pub fn open_rw<P: AsRef<Path>>(path: P) -> io::Result<VpxFile<File>> {
let file = OpenOptions::new()
.read(true)
.write(true)
.create(true)
.open(path)?;
let file = OpenOptions::new().read(true).write(true).open(path)?;
VpxFile::open_rw(file)
}

Expand Down

0 comments on commit 9ae8dc4

Please sign in to comment.