summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTom Smeding <tom.smeding@gmail.com>2020-04-04 11:16:34 +0200
committerTom Smeding <tom.smeding@gmail.com>2020-04-04 11:16:34 +0200
commit40dc45e7bd8fbf631c981b45df739f23713f29c7 (patch)
treee6d6353b9418ac22876fdec643c9255e2661f360 /src
parenta0d10b3138b4543c7bf394738513bb0ec4a68bad (diff)
Fix deprecated no-dyn syntax
Diffstat (limited to 'src')
-rw-r--r--src/main.rs2
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 {