language changes: str::shift_slice_char has been updated.
This commit is contained in:
parent
ec6c874042
commit
e947b4eec6
|
@ -43,7 +43,10 @@ fn format(w: &mut Writer, date: Option<&NaiveDate>, time: Option<&NaiveTime>,
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
let (head, tail) = part.slice_shift_char();
|
let (head, tail) = match part.slice_shift_char() {
|
||||||
|
Some((head, tail)) => (Some(head), tail),
|
||||||
|
None => (None, ""),
|
||||||
|
};
|
||||||
match (head, date, time, off) {
|
match (head, date, time, off) {
|
||||||
// year
|
// year
|
||||||
(Some('Y'), Some(d), _, _) => try!(write!(w, "{}", d.year())),
|
(Some('Y'), Some(d), _, _) => try!(write!(w, "{}", d.year())),
|
||||||
|
|
Loading…
Reference in New Issue