From 40dc45e7bd8fbf631c981b45df739f23713f29c7 Mon Sep 17 00:00:00 2001 From: Tom Smeding Date: Sat, 4 Apr 2020 11:16:34 +0200 Subject: Fix deprecated no-dyn syntax --- src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -> usize + 'static)>; +type Callback = Box<(dyn Fn(&mut Vec) -> usize + 'static)>; fn mk_callback(f: F) -> Callback where F: Fn(&mut Vec) -> usize + 'static { -- cgit v1.2.3-70-g09d2