summaryrefslogtreecommitdiffstats
path: root/src/utils.rs
diff options
context:
space:
mode:
authorpierresy <pierre-henri.symoneaux@alcatel-lucent.com>2015-08-12 13:53:07 +0200
committerpierresy <pierre-henri.symoneaux@alcatel-lucent.com>2015-08-12 13:53:07 +0200
commit97d22d53eb7c7144e18aa6f419f8ff8dacc5ba52 (patch)
treed5446463192ee2ffeb614b5c041d96d9235f92d7 /src/utils.rs
parent7a800eb1ae6d3c93220f59ae995e492c0fd8a1e1 (diff)
Added customizable alignment
Added customizable alignment for text in cells (left, center, right). Also with additional small improvements
Diffstat (limited to 'src/utils.rs')
-rw-r--r--src/utils.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/utils.rs b/src/utils.rs
index ab18d04..d460441 100644
--- a/src/utils.rs
+++ b/src/utils.rs
@@ -3,9 +3,9 @@ use std::io::{Error, ErrorKind, Write};
use std::str;
#[cfg(any(unix, macos))]
-pub static LINEFEED: &'static [u8] = b"\n";
+pub static NEWLINE: &'static [u8] = b"\n";
#[cfg(windows)]
-pub static LINEFEED: &'static [u8] = b"\r\n";
+pub static NEWLINE: &'static [u8] = b"\r\n";
/// Internal utility for writing data into a string
pub struct StringWriter {
@@ -19,7 +19,7 @@ impl StringWriter {
}
/// Return a reference to the internally written `String`
- pub fn as_string(&self) -> &String {
+ pub fn as_string(&self) -> &str {
return &self.string;
}
}