diff options
-rw-r--r-- | src/config.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/config.rs b/src/config.rs index 7254887..b929be0 100644 --- a/src/config.rs +++ b/src/config.rs @@ -40,6 +40,7 @@ impl Config { which is most likely not what you want!"); } config.secret = fs::read_to_string(&config.secret_path) + .map(|mut s| { s.truncate(s.trim_end().len()); s }) .map_err(ConfigError::IoReadingSecret)?; Ok(config) |