We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents f1f6f43 + 9778421 commit 0abbfdeCopy full SHA for 0abbfde
src/functions.rs
@@ -93,13 +93,13 @@ pub struct CustomFunction {
93
/// Signature used to validate the function.
94
signature: Signature,
95
/// Function to invoke after validating the signature.
96
- f: Box<(Fn(&[Rcvar], &mut Context) -> SearchResult) + Sync>,
+ f: Box<Fn(&[Rcvar], &mut Context) -> SearchResult + Sync>,
97
}
98
99
impl CustomFunction {
100
/// Creates a new custom function.
101
pub fn new(fn_signature: Signature,
102
- f: Box<(Fn(&[Rcvar], &mut Context) -> SearchResult) + Sync>)
+ f: Box<Fn(&[Rcvar], &mut Context) -> SearchResult + Sync>)
103
-> CustomFunction {
104
CustomFunction {
105
signature: fn_signature,
0 commit comments