aboutsummaryrefslogtreecommitdiffstats
path: root/src/errors.rs
diff options
context:
space:
mode:
authorTeddy Wing2018-10-22 20:14:55 +0200
committerTeddy Wing2018-10-22 20:14:55 +0200
commit26156433c51cdcfa175c41de28c11828eb78c2eb (patch)
tree4a4084739773865eac1aa10e547c9a31e61cb613 /src/errors.rs
parent0736dd67d690c597e93324e19126f6c48b81f7c4 (diff)
downloaddome-key-map-26156433c51cdcfa175c41de28c11828eb78c2eb.tar.bz2
trial: Add a function to initialise a trial timestamp in a file
Save an encoded timestamp to a file. This function should be run once if no trial file is found. The encoded timestamp can then be read on subsequent launches to determine whether the trial period is still in effect. Also add a few function stubs for other actions that seem relevant.
Diffstat (limited to 'src/errors.rs')
-rw-r--r--src/errors.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/errors.rs b/src/errors.rs
index c2048e9..17508fe 100644
--- a/src/errors.rs
+++ b/src/errors.rs
@@ -5,6 +5,7 @@ use xdg;
error_chain! {
foreign_links {
Xdg(xdg::BaseDirectoriesError);
+ Io(::std::io::Error);
}
}