aboutsummaryrefslogtreecommitdiffstats
path: root/src/local/history.rs
diff options
context:
space:
mode:
authorEllie Huxtable <e@elm.sh>2020-10-05 20:36:15 +0100
committerEllie Huxtable <e@elm.sh>2020-10-05 20:38:34 +0100
commit9917d6c1e2a743d5666247d8e87c9791721c213e (patch)
tree088df4af1041d53bd1faa38d5542200689be57a1 /src/local/history.rs
parentUse bundled sqlite (diff)
parentMerge pull request #2 from conradludgate/main (diff)
downloadatuin-9917d6c1e2a743d5666247d8e87c9791721c213e.zip
Fix merge
...I forgot to push. oops.
Diffstat (limited to 'src/local/history.rs')
-rw-r--r--src/local/history.rs6
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,
}
}
}