From 6f78e00c42d59b73c725ebb4105983aee84459ff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kat=20March=C3=A1n?= Date: Tue, 4 Jun 2019 00:00:30 +0200 Subject: [PATCH] fix(index): switch to using new error module --- src/index.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/index.rs b/src/index.rs index 72b50cd..93c29c5 100644 --- a/src/index.rs +++ b/src/index.rs @@ -3,17 +3,19 @@ use std::io::{ErrorKind, Write}; use std::path::{Path, PathBuf}; use std::time::{SystemTime, UNIX_EPOCH}; +use chownr; use digest::Digest; -use failure::Error; use hex; use mkdirp; use nix::unistd::{Uid, Gid}; use serde_derive::{Deserialize, Serialize}; -use serde_json::{self, json, Value}; +use serde_json::{json, Value}; use sha1::Sha1; use sha2::Sha256; use ssri::Integrity; +use crate::errors::Error; + const INDEX_VERSION: &str = "5"; #[derive(PartialEq, Debug)]