fix(index): switch to using new error module

This commit is contained in:
Kat Marchán 2019-06-04 00:00:30 +02:00
parent b0464849e6
commit 6f78e00c42
No known key found for this signature in database
GPG Key ID: AEB529C08A3C7E9E
1 changed files with 4 additions and 2 deletions

View File

@ -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)]