mirror of
https://github.com/bitcoinresearchkit/brk.git
synced 2026-04-25 23:29:58 -07:00
parser: create config.toml if needed
This commit is contained in:
@@ -27,7 +27,7 @@ impl Config {
|
||||
const PATH: &'static str = "config.toml";
|
||||
|
||||
pub fn read() -> Self {
|
||||
File::open(Self::PATH).unwrap();
|
||||
fs::write(Self::PATH, "").unwrap();
|
||||
|
||||
let string = fs::read_to_string(Self::PATH).unwrap();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user