Closed kstep closed 9 years ago
Fixed by typecasting trim
to fn(&str) -> &str
explicitly:
diff --git a/src/http/headers/serialization_utils.rs b/src/http/headers/serialization_utils.rs
index 3f18873..3dfec59 100644
--- a/src/http/headers/serialization_utils.rs
+++ b/src/http/headers/serialization_utils.rs
@@ -56,7 +56,7 @@ pub fn comma_split_iter<'a>(value: &'a str)
-> ::std::iter::Map<&'a str, &'a str, ::std::str::CharSplits<'a, char>, fn(&str) -> &str> {
fn trim(w: &str) -> &str {w.trim_left()}
- value.split(',').map(trim)
+ value.split(',').map(trim as fn(&str) -> &str)
}
pub trait WriterUtil: Writer {