diff options
| author | Jokler <jokler@protonmail.com> | 2020-01-26 17:53:41 +0100 |
|---|---|---|
| committer | Jokler <jokler@protonmail.com> | 2020-01-29 20:39:27 +0100 |
| commit | 09fc3800030b971da8c68217c22f5a0444d7b278 (patch) | |
| tree | 3c1ff3c89de054851ee4b2fe33b181d5457634e3 /src/main.rs | |
| parent | af0a1b81707536caf4e498d86912f65981342072 (diff) | |
| download | pokebot-09fc3800030b971da8c68217c22f5a0444d7b278.tar.gz pokebot-09fc3800030b971da8c68217c22f5a0444d7b278.zip | |
Move duplicate code into on_client_left method
Diffstat (limited to 'src/main.rs')
| -rw-r--r-- | src/main.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/main.rs b/src/main.rs index ae1bed7..d24b6b6 100644 --- a/src/main.rs +++ b/src/main.rs @@ -106,6 +106,7 @@ fn run() -> Result<(), Box<dyn std::error::Error>> { let toml = toml::to_string(&config)?; let mut file = File::create(&args.config_path)?; file.write_all(toml.as_bytes())?; + return Ok(()); } |
