summaryrefslogtreecommitdiffstats
path: root/src/utils.rs
diff options
context:
space:
mode:
authorpierresy <pierre-henri.symoneaux@alcatel-lucent.com>2015-11-19 09:54:38 +0100
committerpierresy <pierre-henri.symoneaux@alcatel-lucent.com>2015-11-19 09:54:38 +0100
commit92c144e657ede392d0ae116bab85f197e64a65cd (patch)
tree3dd26f3d48ffbbca745c2cb19a85dc753aa7fcc4 /src/utils.rs
parent6add8e7b8adfb4f685224c56dae443ea522c3526 (diff)
Updated Cargo.toml and README.md.
Using style string don't panic anymore if some specifier are unknown. Tables and Rows are now Indexable. Empty rows are now correctly printed. New lines use "\n" for all platforms except windows (which uses "\r\n").
Diffstat (limited to 'src/utils.rs')
-rw-r--r--src/utils.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/utils.rs b/src/utils.rs
index d460441..cfb5619 100644
--- a/src/utils.rs
+++ b/src/utils.rs
@@ -2,7 +2,7 @@
use std::io::{Error, ErrorKind, Write};
use std::str;
-#[cfg(any(unix, macos))]
+#[cfg(not(windows))]
pub static NEWLINE: &'static [u8] = b"\n";
#[cfg(windows)]
pub static NEWLINE: &'static [u8] = b"\r\n";