]> git.lizzy.rs Git - rust.git/blobdiff - src/libstd/rt/logging.rs
Add ToCStr method .with_c_str()
[rust.git] / src / libstd / rt / logging.rs
index 117795f6c90e0ab49860e92cd73c6277fceea12a..4ee65a2b4495fa275d6baca8c4393229f4292155 100644 (file)
@@ -66,7 +66,7 @@ pub fn init(crate_map: *u8) {
     let log_spec = os::getenv("RUST_LOG");
     match log_spec {
         Some(spec) => {
-            do spec.to_c_str().with_ref |buf| {
+            do spec.with_c_str |buf| {
                 unsafe { rust_update_log_settings(crate_map, buf) }
             }
         }