Skip to content

Commit

Permalink
Clean up warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
sfackler committed Oct 5, 2014
1 parent 09ecc7e commit b8fd300
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/ffi.rs
Original file line number Diff line number Diff line change
@@ -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};

Expand Down
2 changes: 1 addition & 1 deletion src/x509/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
})
Expand Down

0 comments on commit b8fd300

Please sign in to comment.