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]
|
||||
pub unsafe extern "C" fn lci_state_destroy(state: *mut lci_state) {
|
||||
if !state.is_null() {
|
||||
Box::from_raw(state);
|
||||
drop(Box::from_raw(state));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
+4
-6
@@ -39,12 +39,10 @@ pub enum GameType {
|
||||
|
||||
impl GameType {
|
||||
fn supports_light_plugins(self) -> bool {
|
||||
match self {
|
||||
GameType::SkyrimSE | GameType::SkyrimVR | GameType::Fallout4 | GameType::Fallout4VR => {
|
||||
true
|
||||
}
|
||||
_ => false,
|
||||
}
|
||||
matches!(
|
||||
self,
|
||||
GameType::SkyrimSE | GameType::SkyrimVR | GameType::Fallout4 | GameType::Fallout4VR
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user