Rustfmt Example
Before fmt:
fn main() { let a=1; if a> 0 { println!("positive"); } else { println!("negative"); } }
After fmt:
fn main() { let a = 1; if a > 0 { println!("positive"); } else { println!("negative"); } }
Before fmt:
fn main() { let a=1; if a> 0 { println!("positive"); } else { println!("negative"); } }
After fmt:
fn main() { let a = 1; if a > 0 { println!("positive"); } else { println!("negative"); } }