Remove return statements from edn parser tests

Signed-off-by: Victor Porof <vporof@mozilla.com>
This commit is contained in:
Victor Porof 2017-02-01 12:05:47 +01:00
parent 25474980b1
commit 17bc85fe27

View file

@ -25,22 +25,22 @@ use edn::utils;
// Helper for making wrapped keywords with a namespace. // Helper for making wrapped keywords with a namespace.
fn k_ns(ns: &str, name: &str) -> Value { fn k_ns(ns: &str, name: &str) -> Value {
return NamespacedKeyword(symbols::NamespacedKeyword::new(ns, name)); NamespacedKeyword(symbols::NamespacedKeyword::new(ns, name))
} }
// Helper for making wrapped keywords without a namespace. // Helper for making wrapped keywords without a namespace.
fn k_plain(name: &str) -> Value { fn k_plain(name: &str) -> Value {
return Keyword(symbols::Keyword::new(name)); Keyword(symbols::Keyword::new(name))
} }
// Helper for making wrapped symbols with a namespace // Helper for making wrapped symbols with a namespace
fn s_ns(ns: &str, name: &str) -> Value { fn s_ns(ns: &str, name: &str) -> Value {
return NamespacedSymbol(symbols::NamespacedSymbol::new(ns, name)); NamespacedSymbol(symbols::NamespacedSymbol::new(ns, name))
} }
// Helper for making wrapped symbols without a namespace // Helper for making wrapped symbols without a namespace
fn s_plain(name: &str) -> Value { fn s_plain(name: &str) -> Value {
return PlainSymbol(symbols::PlainSymbol::new(name)); PlainSymbol(symbols::PlainSymbol::new(name))
} }
#[test] #[test]