diff options
author | Rosyid Haryadi <rosyid_haryadi@protonmail.com> | 2025-03-16 02:34:56 +0700 |
---|---|---|
committer | Rosyid Haryadi <rosyid_haryadi@protonmail.com> | 2025-03-16 02:34:56 +0700 |
commit | 3e8903a54667f24dd8e7f1b74d97ee772c032e64 (patch) | |
tree | 6206852a6d8f89e114ff294ab5252273ebee358e /src/utilities.rs | |
parent | 63fe218d4ea0d52f92af4bde33d96ba3804b50aa (diff) |
upd: git object & refactor: core -> repository
Diffstat (limited to 'src/utilities.rs')
-rw-r--r-- | src/utilities.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/utilities.rs b/src/utilities.rs index 1357cdf..bc78495 100644 --- a/src/utilities.rs +++ b/src/utilities.rs @@ -21,7 +21,7 @@ macro_rules! create_path_or_die { (file: $path:expr, $content:expr, $message:expr) => { if let Ok(mut file) = std::fs::File::create($path) { - if let Err(e) = file.write_all($content.as_ref()) { + if let Err(e) = write!(file, $content) { die!(format!("{}\nError: {}", $message, e.to_string())); } } else { |