diff options
| author | Ellie Huxtable <e@elm.sh> | 2020-10-05 19:25:34 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-10-05 19:25:34 +0100 |
| commit | 46285309fe7f0ccbc829555d402c6c446b69c1da (patch) | |
| tree | 5939c6d8b137d3a44662b5d1fbadca3407b69ed9 /src/local/history.rs | |
| parent | Merge pull request #1 from conradludgate/main (diff) | |
| parent | fix: help text (diff) | |
| download | atuin-46285309fe7f0ccbc829555d402c6c446b69c1da.zip | |
Merge pull request #2 from conradludgate/main
feat: use directories project data dir
Diffstat (limited to 'src/local/history.rs')
| -rw-r--r-- | src/local/history.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/local/history.rs b/src/local/history.rs index 61438b6d..e84d718c 100644 --- a/src/local/history.rs +++ b/src/local/history.rs @@ -8,11 +8,11 @@ pub struct History { } impl History { - pub fn new(command: &str, cwd: &str) -> History { + pub fn new(command: String, cwd: String) -> History { History { timestamp: chrono::Utc::now().timestamp_millis(), - command: command.to_string(), - cwd: cwd.to_string(), + command, + cwd, } } } |
