diff options
author | Tom Smeding <tom.smeding@gmail.com> | 2020-04-04 11:16:34 +0200 |
---|---|---|
committer | Tom Smeding <tom.smeding@gmail.com> | 2020-04-04 11:16:34 +0200 |
commit | 40dc45e7bd8fbf631c981b45df739f23713f29c7 (patch) | |
tree | e6d6353b9418ac22876fdec643c9255e2661f360 | |
parent | a0d10b3138b4543c7bf394738513bb0ec4a68bad (diff) |
Fix deprecated no-dyn syntax
-rw-r--r-- | src/main.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.rs b/src/main.rs index 90ba496..062c080 100644 --- a/src/main.rs +++ b/src/main.rs @@ -38,7 +38,7 @@ fn valid_input_char(c: char) -> bool { c.is_digit(10) || c == '.' || c == 'e' } -type Callback = Box<(Fn(&mut Vec<Entry>) -> usize + 'static)>; +type Callback = Box<(dyn Fn(&mut Vec<Entry>) -> usize + 'static)>; fn mk_callback<F>(f: F) -> Callback where F: Fn(&mut Vec<Entry>) -> usize + 'static { |