summaryrefslogtreecommitdiff
path: root/bin/core/imag-store
diff options
context:
space:
mode:
authorMatthias Beyer <mail@beyermatthias.de>2018-06-08 01:59:19 +0200
committerMatthias Beyer <mail@beyermatthias.de>2018-07-19 20:58:27 +0200
commitf6a7345b4a481109b0226471925f4266a7691f92 (patch)
tree089199a855c43b9997891db77279235f7634a01e /bin/core/imag-store
parent9ad1c8d6bdca933732228ce1359bfab769c20c4d (diff)
downloadimag-f6a7345b4a481109b0226471925f4266a7691f92.zip
imag-f6a7345b4a481109b0226471925f4266a7691f92.tar.gz
Simplify: Move header verification from Value extension to Entry type
Diffstat (limited to 'bin/core/imag-store')
-rw-r--r--bin/core/imag-store/src/verify.rs5
1 files changed, 2 insertions, 3 deletions
diff --git a/bin/core/imag-store/src/verify.rs b/bin/core/imag-store/src/verify.rs
index 900fde0..8fa0098 100644
--- a/bin/core/imag-store/src/verify.rs
+++ b/bin/core/imag-store/src/verify.rs
@@ -23,7 +23,6 @@ use libimagrt::runtime::Runtime;
use libimagutil::warn_exit::warn_exit;
use libimagerror::trace::MapErrTrace;
use libimagerror::iter::TraceIterator;
-use libimagstore::store::Header;
/// Verify the store.
///
@@ -41,13 +40,13 @@ pub fn verify(rt: &Runtime) {
.all(|fle| {
let p = fle.get_location();
let content_len = fle.get_content().len();
- let (header, status) = if fle.get_header().verify().is_ok() {
+ let (verify, status) = if fle.verify().is_ok() {
("ok", true)
} else {
("broken", false)
};
- info!("{: >6} | {: >14} | {:?}", header, content_len, p.deref());
+ info!("{: >6} | {: >14} | {:?}", verify, content_len, p.deref());
status
});