Clean up warnings

This commit is contained in:
Steven Fackler 2014-10-04 19:44:06 -07:00
parent 09ecc7e521
commit b8fd300f80
2 changed files with 2 additions and 2 deletions

View File

@ -1,4 +1,4 @@
#![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};

View File

@ -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
})