1
0
Fork 0
forked from wry/wry

all: fix clippy lints

This commit is contained in:
Julian Orth 2024-02-04 20:17:55 +01:00
parent daf03b423d
commit 58cab8894c
6 changed files with 9 additions and 9 deletions

View file

@ -131,7 +131,7 @@ fn reopen(fd: c::c_int, need_primary: bool) -> Result<Rc<OwnedFd>, DrmError> {
}
device_node_name(fd)?
};
match uapi::open(&path, c::O_RDWR | c::O_CLOEXEC, 0) {
match uapi::open(path, c::O_RDWR | c::O_CLOEXEC, 0) {
Ok(f) => Ok(Rc::new(f)),
Err(e) => Err(DrmError::ReopenNode(e.into())),
}