Given rust: fn main() { let a = 2; println!("Hello World\n") } Do: vip= Expect rust (very basic indentation result): fn main() { let a = 2; println!("Hello World\n") } ############################################ # Issue #195 Given rust: fn main() { let paths: Vec<_> = ({ fs::read_dir("test_data") .unwrap() .cloned() }) .collect(); println!("Hello World\n"); } Do: /collect\ ostatement();\\ Expect rust (issue #195): fn main() { let paths: Vec<_> = ({ fs::read_dir("test_data") .unwrap() .cloned() }) .collect(); statement(); println!("Hello World\n"); } ############################################ # Issue #189 Given rust: impl X for { pub fn get(&self, key: &Q) -> Option> where K: Borrow, Q: Ord + ?Sized, { self.inner.get(key).map(Entry::new) } } Do: vip= Expect rust (issue #189): impl X for { pub fn get(&self, key: &Q) -> Option> where K: Borrow, Q: Ord + ?Sized, { self.inner.get(key).map(Entry::new) } } ############################################ # Issue #189b Given rust: impl X for { pub fn get(&self, key: &Q) -> Option> where K: Borrow, Q: Ord + ?Sized { self.inner.get(key).map(Entry::new) } } Do: vip= Expect rust (issue #189b): impl X for { pub fn get(&self, key: &Q) -> Option> where K: Borrow, Q: Ord + ?Sized { self.inner.get(key).map(Entry::new) } } ############################################ # Issue #189c Given rust: impl X for { pub fn get(&self, key: &Q) -> Option> where K: Borrow, Q: Ord + ?Sized { self.inner.get(key).map(Entry::new) } } Do: vip= Expect rust (issue #189b): impl X for { pub fn get(&self, key: &Q) -> Option> where K: Borrow, Q: Ord + ?Sized { self.inner.get(key).map(Entry::new) } } ############################################ # Issue #149 Given rust: fn test() { let t = "a wah"; } Do: /wah\ i#\\ /;\o statement();\\ # Disabled # Expect rust (issue #149): fn test() { let t = "a #wah"; statement(); } ############################################ # Issue #77 Given rust: fn test() { } Do: of(x, y,\z);\ f((x, y),\z);\ # Disabled # Expect rust (issue #77): fn test() { f(x, y, z); f((x, y), z); } ############################################ # Issue #44 Given rust: fn main() { a let philosophers = vec![ Philosopher::new("Judith Butler"), Philosopher::new("Gilles Deleuze"), Philosopher::new("Karl Marx"), Philosopher::new("Emma Goldman"), Philosopher::new("Michel Foucault"), ]; } Do: /let\ vip= # Disabled # Expect rust (issue #44): fn main() { a let philosophers = vec![ Philosopher::new("Judith Butler"), Philosopher::new("Gilles Deleuze"), Philosopher::new("Karl Marx"), Philosopher::new("Emma Goldman"), Philosopher::new("Michel Foucault"), ]; } ############################################ # Issue #5 Given rust: fn f() { if x && y { } } Do: vip= Expect rust (issue #5): fn f() { if x && y { } } ############################################ # Issue #366 Given rust: fn f() { g(|_| { h(); }) .unwrap(); h(); } Do: vip= Expect rust (issue #366): fn f() { g(|_| { h(); }) .unwrap(); h(); } Given rust: fn f() { let a = g(|_| { h(); }) .unwrap(); h(); } Do: vip= Expect rust (issue #366, variation #2): fn f() { let a = g(|_| { h(); }) .unwrap(); h(); } ############################################ Given rust: fn f() { let mut state = State::new( backend, header.clone(), ).expect("Something"); } Do: vip= Expect rust (Trailing comma in call): fn f() { let mut state = State::new( backend, header.clone(), ).expect("Something"); }