summaryrefslogtreecommitdiffstats
path: root/src/ser.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 /src/ser.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 'src/ser.rs')
-rw-r--r--src/ser.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ser.rs b/src/ser.rs
index 39c02b9..ce016bf 100644
--- a/src/ser.rs
+++ b/src/ser.rs
@@ -710,9 +710,9 @@ mod test {
int: 1,
seq: vec!["a".to_string(), "b".to_string()],
};
- let config = Config::try_from(&test).unwrap();
+ let config = Config::try_serialize(&test).unwrap();
- let actual: Test = config.try_into().unwrap();
+ let actual: Test = config.try_deserialize().unwrap();
assert_eq!(test, actual);
}
}