aboutsummaryrefslogtreecommitdiffstats
path: root/src/local/history.rs
diff options
context:
space:
mode:
authorConrad Ludgate <conradludgate@gmail.com>2020-10-05 17:20:48 +0100
committerConrad Ludgate <conradludgate@gmail.com>2020-10-05 17:20:48 +0100
commit28287a63031ec44fdda0eea99d757a7047df5a41 (patch)
tree67b2b73507f7ccceea100e333c47c651636c7fba /src/local/history.rs
parentMerge pull request #1 from conradludgate/main (diff)
downloadatuin-28287a63031ec44fdda0eea99d757a7047df5a41.zip
feat: use directories project data dir
chore: clean up some things
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,
}
}
}