Skip to content

Commit 0abbfde

Browse files
authored
Merge pull request #20 from petrochenkov/master
Fix syntactic error on nightly Rust
2 parents f1f6f43 + 9778421 commit 0abbfde

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/functions.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,13 +93,13 @@ pub struct CustomFunction {
9393
/// Signature used to validate the function.
9494
signature: Signature,
9595
/// Function to invoke after validating the signature.
96-
f: Box<(Fn(&[Rcvar], &mut Context) -> SearchResult) + Sync>,
96+
f: Box<Fn(&[Rcvar], &mut Context) -> SearchResult + Sync>,
9797
}
9898

9999
impl CustomFunction {
100100
/// Creates a new custom function.
101101
pub fn new(fn_signature: Signature,
102-
f: Box<(Fn(&[Rcvar], &mut Context) -> SearchResult) + Sync>)
102+
f: Box<Fn(&[Rcvar], &mut Context) -> SearchResult + Sync>)
103103
-> CustomFunction {
104104
CustomFunction {
105105
signature: fn_signature,

0 commit comments

Comments
 (0)