mirror of
https://github.com/loot/loot-condition-interpreter.git
synced 2026-07-27 14:16:09 -07:00
Resolve clippy warnings
This commit is contained in:
+1
-1
@@ -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
@@ -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,
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user