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

@@ -231,7 +231,7 @@ mod dl {
Ok(result)
} else {
let s = CStr::from_ptr(last_error).to_bytes();
Err(str::from_utf8(s).unwrap().to_string())
Err(str::from_utf8(s).unwrap().to_owned())
};
ret