diff options
author | Ben S <ogham@bsago.me> | 2015-02-23 14:52:07 +0000 |
---|---|---|
committer | Ben S <ogham@bsago.me> | 2015-02-23 14:52:07 +0000 |
commit | ce23c63d759e3f19f59c91ebaa776d5b7a8746ac (patch) | |
tree | 354dca32c27c2c63a3a7d03b3faef882d0a87f1f /src/column.rs | |
parent | 38a785426bda54db3adeeb7edf991fd8c4d78e30 (diff) | |
parent | 586c7dd30b2091d2b9fa3dc53b0af0aa2feb0b0f (diff) |
Merge branch 'nwin:add-xattr-linux'
Conflicts:
src/file.rs
Diffstat (limited to 'src/column.rs')
-rw-r--r-- | src/column.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/column.rs b/src/column.rs index 85ea24a..28101f1 100644 --- a/src/column.rs +++ b/src/column.rs @@ -68,7 +68,7 @@ impl Alignment { /// of spaces to add: this is because the strings are usually full of /// invisible control characters, so getting the displayed width of the /// string is not as simple as just getting its length. - pub fn pad_string(&self, string: &String, padding: usize) -> String { + pub fn pad_string(&self, string: &str, padding: usize) -> String { match *self { Alignment::Left => format!("{}{}", string, spaces(padding)), Alignment::Right => format!("{}{}", spaces(padding), string), |