1
Fork 0

some more clippy-based improvements

This commit is contained in:
Andre Bogus 2015-09-08 00:36:29 +02:00
parent 7bf626a680
commit 9cca96545f
34 changed files with 253 additions and 273 deletions

View file

@ -35,7 +35,7 @@ pub fn cvt_gai(err: c_int) -> io::Result<()> {
let detail = unsafe {
str::from_utf8(CStr::from_ptr(c::gai_strerror(err)).to_bytes()).unwrap()
.to_string()
.to_owned()
};
Err(io::Error::new(io::ErrorKind::Other,
&format!("failed to lookup address information: {}",