diff --git a/parsing/src/suggestions.rs b/parsing/src/suggestions.rs index 0bd4825..e946918 100644 --- a/parsing/src/suggestions.rs +++ b/parsing/src/suggestions.rs @@ -242,11 +242,14 @@ impl<'a> std::fmt::Debug for Hint<'a> { } impl<'a> Hint<'a> { + #[inline] pub const fn is_none(&self) -> bool { matches!(&self, &Hint::None) } + #[inline] #[allow(dead_code)] pub const fn is_some(&self) -> bool { !self.is_none() } + #[inline] #[allow(dead_code)] pub const fn is_single(&self) -> bool { matches!(&self, &Hint::Single(_)) } diff --git a/src/function_entry.rs b/src/function_entry.rs index 8844d9f..394925c 100644 --- a/src/function_entry.rs +++ b/src/function_entry.rs @@ -262,7 +262,8 @@ impl FunctionEntry { _ => unreachable!(), }; - dyn_iter(&newtons_method_output) + newtons_method_output + .iter() .map(|x| Value::new(*x, self.function.get(*x))) .collect() }