Use deserializer.visit_string for PathBuf

This commit is contained in:
Erick Tryzelaar
2016-01-28 09:45:38 -08:00
parent b3212f4c2b
commit 4507eaec5b
3 changed files with 18 additions and 1 deletions
+6
View File
@@ -1,4 +1,5 @@
use std::collections::{BTreeMap, BTreeSet, HashMap, HashSet};
use std::path::PathBuf;
use num::FromPrimitive;
use num::bigint::{BigInt, BigUint};
@@ -589,4 +590,9 @@ declare_tests! {
Token::SeqEnd,
],
}
test_path_buf {
PathBuf::from("/usr/local/lib") => vec![
Token::String("/usr/local/lib".to_owned()),
],
}
}