Remove smush rules, fix warnings
This commit is contained in:
@@ -5,9 +5,6 @@ use std::ffi::CString;
|
||||
|
||||
pub use self::move_money::*;
|
||||
|
||||
mod smush_rules;
|
||||
pub use self::smush_rules::*;
|
||||
|
||||
mod overhead_allocation;
|
||||
pub use self::overhead_allocation::*;
|
||||
|
||||
@@ -50,7 +47,8 @@ pub extern "C" fn move_money_from_text(
|
||||
&mut output_writer,
|
||||
use_numeric_accounts,
|
||||
true,
|
||||
);
|
||||
)
|
||||
.expect("Failed to move money");
|
||||
// TODO: Replace all these unwraps with something more elegant
|
||||
let inner = output_writer.into_inner().unwrap();
|
||||
CString::new(String::from_utf8(inner).unwrap())
|
||||
@@ -119,7 +117,8 @@ pub extern "C" fn allocate_overheads_from_text(
|
||||
false,
|
||||
true,
|
||||
account_type.to_str().unwrap().to_owned(),
|
||||
);
|
||||
)
|
||||
.expect("Failed to allocate overheads");
|
||||
let inner = output_writer.into_inner().unwrap();
|
||||
CString::new(String::from_utf8(inner).unwrap())
|
||||
.unwrap()
|
||||
|
||||
Reference in New Issue
Block a user