1 use xshell::{cmd, Shell}; 2 3 #[test] test_formatting()4 fn test_formatting() { 5 let sh = Shell::new().unwrap(); 6 cmd!(sh, "cargo fmt --all -- --check").run().unwrap() 7 } 8