src/ruby_string.rs in faster_path-0.1.5 vs src/ruby_string.rs in faster_path-0.1.6
- old
+ new
@@ -1,4 +1,8 @@
+use libc::c_char;
+use std::ffi::{CStr,CString};
+use std::str;
+
pub struct RubyString;
// Coercing strs into Strings has some loss of performance
// You may use these methods temporarily but it would be much better
// to write all of this code out in each method using just str.