Commit b8fd300f authored by Steven Fackler's avatar Steven Fackler
Browse files

Clean up warnings

parent 09ecc7e5
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
#![allow(non_camel_case_types)]
#![allow(non_camel_case_types, non_uppercase_statics, non_snake_case)]
#![allow(dead_code)]
use libc::{c_void, c_int, c_char, c_ulong, c_long, c_uint, c_uchar, size_t};

+1 −1
Original line number Diff line number Diff line
@@ -122,7 +122,7 @@ trait ToStr {
impl<'a, T: AsStr<'a>> ToStr for Vec<T> {
    fn to_str(&self) -> String {
        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
        })