From d122ad5adc2164e34e59a7e9e7e8da2dfba7ffb5 Mon Sep 17 00:00:00 2001 From: Marcus Klaas Date: Sat, 24 Oct 2015 12:19:58 +0200 Subject: Address some issues with multiline patterns in let statements --- src/lib.rs | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/lib.rs') diff --git a/src/lib.rs b/src/lib.rs index 33753524348..a22e797fb68 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -168,6 +168,14 @@ impl Add for Indent { } } +impl Sub for Indent { + type Output = Indent; + + fn sub(self, rhs: usize) -> Indent { + Indent::new(self.block_indent, self.alignment - rhs) + } +} + #[derive(Copy, Clone)] pub enum WriteMode { // Backups the original file and overwrites the orignal. -- cgit 1.4.1-3-g733a5