mirror of
https://github.com/MrBeanCpp/MIT.git
synced 2026-04-04 03:07:48 +08:00
rustfmt: max-width=120
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user