Resolve clippy warnings

This commit is contained in:
Oliver Hamlet
2023-04-23 08:38:24 +01:00
parent e9183c4ef9
commit 50662558ae
2 changed files with 5 additions and 7 deletions
+1 -1
View File
@@ -66,7 +66,7 @@ pub unsafe extern "C" fn lci_state_create(
#[no_mangle] #[no_mangle]
pub unsafe extern "C" fn lci_state_destroy(state: *mut lci_state) { pub unsafe extern "C" fn lci_state_destroy(state: *mut lci_state) {
if !state.is_null() { if !state.is_null() {
Box::from_raw(state); drop(Box::from_raw(state));
} }
} }
+4 -6
View File
@@ -39,12 +39,10 @@ pub enum GameType {
impl GameType { impl GameType {
fn supports_light_plugins(self) -> bool { fn supports_light_plugins(self) -> bool {
match self { matches!(
GameType::SkyrimSE | GameType::SkyrimVR | GameType::Fallout4 | GameType::Fallout4VR => { self,
true GameType::SkyrimSE | GameType::SkyrimVR | GameType::Fallout4 | GameType::Fallout4VR
} )
_ => false,
}
} }
} }