From 26156433c51cdcfa175c41de28c11828eb78c2eb Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Mon, 22 Oct 2018 20:14:55 +0200 Subject: 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. --- src/errors.rs | 1 + 1 file changed, 1 insertion(+) (limited to 'src/errors.rs') 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); } } -- cgit v1.2.3