Clean up warnings
This commit is contained in:
parent
09ecc7e521
commit
b8fd300f80
|
|
@ -1,4 +1,4 @@
|
||||||
#![allow(non_camel_case_types)]
|
#![allow(non_camel_case_types, non_uppercase_statics, non_snake_case)]
|
||||||
#![allow(dead_code)]
|
#![allow(dead_code)]
|
||||||
use libc::{c_void, c_int, c_char, c_ulong, c_long, c_uint, c_uchar, size_t};
|
use libc::{c_void, c_int, c_char, c_ulong, c_long, c_uint, c_uchar, size_t};
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -122,7 +122,7 @@ trait ToStr {
|
||||||
impl<'a, T: AsStr<'a>> ToStr for Vec<T> {
|
impl<'a, T: AsStr<'a>> ToStr for Vec<T> {
|
||||||
fn to_str(&self) -> String {
|
fn to_str(&self) -> String {
|
||||||
self.iter().enumerate().fold(String::new(), |mut acc, (idx, v)| {
|
self.iter().enumerate().fold(String::new(), |mut acc, (idx, v)| {
|
||||||
if idx > 0 { acc.push_char(',') };
|
if idx > 0 { acc.push(',') };
|
||||||
acc.push_str(v.as_str());
|
acc.push_str(v.as_str());
|
||||||
acc
|
acc
|
||||||
})
|
})
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue