clippy
This commit is contained in:
parent
a9de6d5539
commit
caba881a95
@ -105,13 +105,10 @@ impl FunctionManager {
|
|||||||
.hint_forward(true) // Make the hint appear after the last text in the textbox
|
.hint_forward(true) // Make the hint appear after the last text in the textbox
|
||||||
.lock_focus(true)
|
.lock_focus(true)
|
||||||
.id(te_id) // Set widget's id to `te_id`
|
.id(te_id) // Set widget's id to `te_id`
|
||||||
.hint_text({
|
.hint_text(
|
||||||
// If there's a single hint, go ahead and apply the hint here, if not, set the hint to an empty string
|
// If there's a single hint, go ahead and apply the hint here, if not, set the hint to an empty string
|
||||||
match function.autocomplete.hint.single() {
|
function.autocomplete.hint.single().unwrap_or(""),
|
||||||
Some(single_hint) => single_hint,
|
),
|
||||||
None => "",
|
|
||||||
}
|
|
||||||
}),
|
|
||||||
);
|
);
|
||||||
|
|
||||||
// Only keep valid chars
|
// Only keep valid chars
|
||||||
|
|||||||
@ -129,7 +129,7 @@ pub fn newtons_method(
|
|||||||
/// Inputs `Vec<Option<T>>` and outputs a `String` containing a pretty representation of the Vector
|
/// Inputs `Vec<Option<T>>` and outputs a `String` containing a pretty representation of the Vector
|
||||||
pub fn option_vec_printer<T: ToString>(data: &[Option<T>]) -> String {
|
pub fn option_vec_printer<T: ToString>(data: &[Option<T>]) -> String {
|
||||||
let formatted: String = data
|
let formatted: String = data
|
||||||
.into_iter()
|
.iter()
|
||||||
.map(|item| match item {
|
.map(|item| match item {
|
||||||
Some(x) => x.to_string(),
|
Some(x) => x.to_string(),
|
||||||
None => "None".to_owned(),
|
None => "None".to_owned(),
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user