From 60b493901cf23c79a1479b853923cf0a3b48b5a2 Mon Sep 17 00:00:00 2001 From: Dane Johnson Date: Sat, 22 Jan 2022 11:50:02 -0600 Subject: [PATCH] linter stuff --- src/src/lib.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/src/lib.rs b/src/src/lib.rs index 0d71360..99b5f8a 100644 --- a/src/src/lib.rs +++ b/src/src/lib.rs @@ -32,7 +32,7 @@ pub struct StatCheck { pub rel: char, } -#[derive(Debug, PartialEq)] +#[derive(Debug, PartialEq)] pub struct StatChange { pub stat: String, pub addend: i32, @@ -221,7 +221,7 @@ pub mod ffi { flavor: CString::new(choice.flavor.clone()).unwrap().into_raw(), statcheck: match &choice.stat_check { Some(statcheck) => { - let statcheck = StatCheck::new(&statcheck); + let statcheck = StatCheck::new(statcheck); let statcheck = Box::from(statcheck); Box::into_raw(statcheck) } @@ -229,7 +229,7 @@ pub mod ffi { }, statchange: match &choice.stat_change { Some(statchange) => { - let statchange = StatChange::new(&statchange); + let statchange = StatChange::new(statchange); let statchange = Box::from(statchange); Box::into_raw(statchange) @@ -345,7 +345,7 @@ pub mod ffi { }); list = Box::into_raw(node); } - return list + list } else { panic!("Requested choices but page is not choices."); }