linter stuff
This commit is contained in:
parent
893059ccad
commit
60b493901c
@ -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.");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user