From f3a679d845936742a7867c0d6b50aaab121ed3d0 Mon Sep 17 00:00:00 2001 From: itiB Date: Thu, 7 Apr 2022 01:44:02 +0900 Subject: [PATCH] Add: Flush method. --- src/options/level_tuning.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/options/level_tuning.rs b/src/options/level_tuning.rs index cc5e8adb..4809e0d2 100644 --- a/src/options/level_tuning.rs +++ b/src/options/level_tuning.rs @@ -83,6 +83,7 @@ impl LevelTuning { }; file.write_all(content.as_bytes()).unwrap(); + file.flush().unwrap(); println!( "level: {} -> {}", rule["level"].as_str().unwrap(),