more cleanup
This commit is contained in:
parent
243135b3dc
commit
7a109d5638
@ -41,14 +41,13 @@ impl BackingFunction {
|
||||
.filter(|ele| ele != &"x")
|
||||
.collect::<Vec<&String>>();
|
||||
|
||||
return Err(match var_names_not_x.len() {
|
||||
1 => {
|
||||
format!("Error: invalid variable: {}", var_names_not_x[0])
|
||||
return Err(format!(
|
||||
"Error: invalid variable{}",
|
||||
match var_names_not_x.len() {
|
||||
1 => String::from(": ") + var_names_not_x[0].as_str(),
|
||||
_ => format!("s: {:?}", var_names_not_x),
|
||||
}
|
||||
_ => {
|
||||
format!("Error: invalid variables: {:?}", var_names_not_x)
|
||||
}
|
||||
});
|
||||
));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -92,4 +92,4 @@ lazy_static::lazy_static! {
|
||||
pub fn is_mobile() -> bool { return *IS_MOBILE; }
|
||||
|
||||
#[cfg(not(target_arch = "wasm32"))]
|
||||
pub const fn is_mobile() -> bool { return false; }
|
||||
pub const fn is_mobile() -> bool { false }
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user