diff options
author | pierresy <pierre-henri.symoneaux@alcatel-lucent.com> | 2015-08-12 13:53:07 +0200 |
---|---|---|
committer | pierresy <pierre-henri.symoneaux@alcatel-lucent.com> | 2015-08-12 13:53:07 +0200 |
commit | 97d22d53eb7c7144e18aa6f419f8ff8dacc5ba52 (patch) | |
tree | d5446463192ee2ffeb614b5c041d96d9235f92d7 /src/utils.rs | |
parent | 7a800eb1ae6d3c93220f59ae995e492c0fd8a1e1 (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.rs | 6 |
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;
}
}
|