rustfmt: max-width=120

This commit is contained in:
mrbeanc
2023-12-21 20:54:12 +08:00
parent a2e9072951
commit 737917e421
7 changed files with 11 additions and 22 deletions

View File

@@ -61,8 +61,8 @@ pub fn setup_test_without_mit() {
pub fn ensure_test_file(path: &Path, content: option::Option<&str>) {
// 以测试目录为根目录,创建文件
let mut file = fs::File::create(get_working_dir().unwrap().join(path))
.expect(format!("无法创建文件:{:?}", path).as_str());
let mut file =
fs::File::create(get_working_dir().unwrap().join(path)).expect(format!("无法创建文件:{:?}", path).as_str());
if let Some(content) = content {
file.write(content.as_bytes()).unwrap();
} else {