Mercurial > hg
comparison rust/chg/src/message.rs @ 44685:90e05b304902
rust-chg: silence warning about dated coding style
Differential Revision: https://phab.mercurial-scm.org/D8384
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Tue, 31 Mar 2020 23:25:26 +0900 |
parents | 82adc720c0a3 |
children | 61fda2dbc522 |
comparison
equal
deleted
inserted
replaced
44684:80d6e3415636 | 44685:90e05b304902 |
---|---|
150 s.as_ref().iter().map(|&c| c as char).collect() | 150 s.as_ref().iter().map(|&c| c as char).collect() |
151 } | 151 } |
152 | 152 |
153 fn new_parse_error<E>(error: E) -> io::Error | 153 fn new_parse_error<E>(error: E) -> io::Error |
154 where | 154 where |
155 E: Into<Box<error::Error + Send + Sync>>, | 155 E: Into<Box<dyn error::Error + Send + Sync>>, |
156 { | 156 { |
157 io::Error::new(io::ErrorKind::InvalidData, error) | 157 io::Error::new(io::ErrorKind::InvalidData, error) |
158 } | 158 } |
159 | 159 |
160 #[cfg(test)] | 160 #[cfg(test)] |