summaryrefslogtreecommitdiffstats
path: root/examples/glob/src/main.rs
diff options
context:
space:
mode:
authorMatthias Beyer <mail@beyermatthias.de>2021-03-14 09:26:51 +0100
committerMatthias Beyer <mail@beyermatthias.de>2021-03-14 09:48:59 +0100
commitc26a941541ccd7733f7533372da71f0a5be36ed5 (patch)
tree2ed0a5f2df07dd3dcdbf73af9394cdea5f9df57a /examples/glob/src/main.rs
parenta3f205dc628b59a32de813b3efefbaec4667d217 (diff)
Rename try_into/try_from
Because of the clash in names with the TryInto and TryFrom traits, we're renaming the functions here to try_serialize/try_deserialize. Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
Diffstat (limited to 'examples/glob/src/main.rs')
-rw-r--r--examples/glob/src/main.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/glob/src/main.rs b/examples/glob/src/main.rs
index e653b77..206ce2e 100644
--- a/examples/glob/src/main.rs
+++ b/examples/glob/src/main.rs
@@ -19,7 +19,7 @@ fn main() {
// Print out our settings (as a HashMap)
println!("\n{:?} \n\n-----------",
- settings.try_into::<HashMap<String, String>>().unwrap());
+ settings.try_deserialize::<HashMap<String, String>>().unwrap());
// Option 2
// --------
@@ -33,7 +33,7 @@ fn main() {
// Print out our settings (as a HashMap)
println!("\n{:?} \n\n-----------",
- settings.try_into::<HashMap<String, String>>().unwrap());
+ settings.try_deserialize::<HashMap<String, String>>().unwrap());
// Option 3
// --------
@@ -48,5 +48,5 @@ fn main() {
// Print out our settings (as a HashMap)
println!("\n{:?} \n\n-----------",
- settings.try_into::<HashMap<String, String>>().unwrap());
+ settings.try_deserialize::<HashMap<String, String>>().unwrap());
}