summaryrefslogtreecommitdiffstats
path: root/examples/watch/src
diff options
context:
space:
mode:
authorMatthias Beyer <mail@beyermatthias.de>2021-08-20 09:17:22 +0200
committerGitHub <noreply@github.com>2021-08-20 09:17:22 +0200
commit0d3a5c3d24a77467366a8d10df439f511dde4dd6 (patch)
tree70dc9fb2f007ca3dd5df24dda1355501085f1313 /examples/watch/src
parent74a0a809f642e2d212752c9ccb767d987c42302e (diff)
parent9075ca9018417f4b15b60f31e5e3aff64009132c (diff)
Merge pull request #217 from dlo9/master
Preserve map ordering
Diffstat (limited to 'examples/watch/src')
-rw-r--r--examples/watch/src/main.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/watch/src/main.rs b/examples/watch/src/main.rs
index a197390..cbe30e7 100644
--- a/examples/watch/src/main.rs
+++ b/examples/watch/src/main.rs
@@ -1,5 +1,5 @@
use config::*;
-use std::collections::HashMap;
+use std::collections::Map;
use std::sync::RwLock;
use notify::{RecommendedWatcher, DebouncedEvent, Watcher, RecursiveMode};
use std::sync::mpsc::channel;
@@ -20,7 +20,7 @@ fn show() {
.read()
.unwrap()
.clone()
- .try_into::<HashMap<String, String>>()
+ .try_into::<Map<String, String>>()
.unwrap());
}