Skip to content

Commit ff8a729

Browse files
committed
Fix drop statement
Instead of as_ref() we should use as_mut(). Signed-off-by: Markku Kylänpää <[email protected]>
1 parent 8cbcbec commit ff8a729

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libhapp/src/device.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,7 @@ impl Drop for Device {
295295
}
296296

297297
if self.device_file.is_some() {
298-
drop(self.device_file.as_ref().unwrap());
298+
drop(self.device_file.as_mut());
299299
}
300300
}
301301
}

0 commit comments

Comments
 (0)