diff options
| author | Ellie Huxtable <e@elm.sh> | 2021-04-20 17:07:11 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-04-20 16:07:11 +0000 |
| commit | 34888827f8a06de835cbe5833a06914f28cce514 (patch) | |
| tree | 8b56f20e50065cd2c222d5e8e067ec55cf1947a1 /src/settings.rs | |
| parent | Optimise docker (#34) (diff) | |
| download | atuin-34888827f8a06de835cbe5833a06914f28cce514.zip | |
Switch to Warp + SQLx, use async, switch to Rust stable (#36)
* Switch to warp + sql, use async and stable rust
* Update CI to use stable
Diffstat (limited to 'src/settings.rs')
| -rw-r--r-- | src/settings.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/settings.rs b/src/settings.rs index f3bc62e6..5325610e 100644 --- a/src/settings.rs +++ b/src/settings.rs @@ -161,7 +161,7 @@ impl Settings { // Finally, set the auth token if Path::new(session_path.to_string().as_str()).exists() { let token = std::fs::read_to_string(session_path.to_string())?; - s.set("local.session_token", token)?; + s.set("local.session_token", token.trim())?; } else { s.set("local.session_token", "not logged in")?; } |
