diff options
author | Mohamed Hayibor <mohamedhayibor@gmail.com> | 2016-08-21 17:24:49 -0400 |
---|---|---|
committer | Mohamed Hayibor <mohamedhayibor@gmail.com> | 2016-08-21 17:24:49 -0400 |
commit | 8d9f827e9b2e5a0c001244d2f576bc45e75e1548 (patch) | |
tree | 2857c8939a3b1649c5a74d43b94904b37be9512e /src/format.rs | |
parent | 8d271aa5bd95eaab3615f04ad9f177e88e6dff49 (diff) |
Remove extraneous return statements
Diffstat (limited to 'src/format.rs')
-rw-r--r-- | src/format.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/format.rs b/src/format.rs index ae72e59..d0d816e 100644 --- a/src/format.rs +++ b/src/format.rs @@ -6,7 +6,7 @@ use super::utils::NEWLINE; /// Alignment for cell's content
#[derive(Clone, Debug, PartialEq, Copy)]
-pub enum Alignment {
+pub enum Alignment {
LEFT,
CENTER,
RIGHT
@@ -155,7 +155,7 @@ impl TableFormat { }
fn get_sep_for_line(&self, pos: LinePosition) -> &Option<LineSeparator> {
- return match pos {
+ match pos {
LinePosition::Intern => return &self.lsep,
LinePosition::Top => return &self.top_sep,
LinePosition::Bottom => return &self.bottom_sep,
@@ -163,7 +163,7 @@ impl TableFormat { s @ &Some(_) => s,
&None => &self.lsep
}
- };
+ }
}
/// Print a full line separator to `out`. `col_width` is a slice containing the width of each column
|