summaryrefslogtreecommitdiffstats
path: root/tool
diff options
context:
space:
mode:
authorJustus Winter <justus@sequoia-pgp.org>2020-09-17 13:09:58 +0200
committerJustus Winter <justus@sequoia-pgp.org>2020-09-17 13:09:58 +0200
commit072818fdf67f7693a71f8bf1ad331e3e99cabfcf (patch)
treeb07500db0d4db72b4402c165c660fed803272830 /tool
parentfcb6398ef0168817dd0088b6c5a397bd6141afc6 (diff)
sq: Use buffered_reader::File::open instead of fs::File::open.
- The former remembers the file's path and includes it in error messages.
Diffstat (limited to 'tool')
-rw-r--r--tool/Cargo.toml1
-rw-r--r--tool/src/sq.rs3
2 files changed, 3 insertions, 1 deletions
diff --git a/tool/Cargo.toml b/tool/Cargo.toml
index 42c12c94..e4623bbc 100644
--- a/tool/Cargo.toml
+++ b/tool/Cargo.toml
@@ -22,6 +22,7 @@ gitlab = { repository = "sequoia-pgp/sequoia" }
maintenance = { status = "actively-developed" }
[dependencies]
+buffered-reader = { path = "../buffered-reader", version = "0.18" }
sequoia-openpgp = { path = "../openpgp", version = "0.19" }
sequoia-autocrypt = { path = "../autocrypt", version = "0.19" }
sequoia-core = { path = "../core", version = "0.19" }
diff --git a/tool/src/sq.rs b/tool/src/sq.rs
index df798808..a060f1c5 100644
--- a/tool/src/sq.rs
+++ b/tool/src/sq.rs
@@ -12,12 +12,13 @@ extern crate tokio_core;
use crossterm::terminal;
use anyhow::Context as _;
use prettytable::{Table, Cell, Row};
-use std::fs::{File, OpenOptions};
+use std::fs::OpenOptions;
use std::io::{self, Write};
use std::path::{Path, PathBuf};
use std::process::exit;
use chrono::{DateTime, offset::Utc};
+use buffered_reader::File;
extern crate sequoia_openpgp as openpgp;
extern crate sequoia_core;
extern crate sequoia_net;