rustfmt-nightly 1.4.21

Tool to find and fix Rust formatting issues
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// Preserve two trailing whitespaces in doc comment,
// but trim any whitespaces in normal comment.

//! hello world  
//! hello world

/// hello world    
/// hello world
/// hello world  
fn foo() {
    // hello world
    // hello world
    let x = 3;
    println!("x = {}", x);
}