mirror of https://github.com/zkat/cacache-rs.git
fix(index): switch to using new error module
This commit is contained in:
parent
b0464849e6
commit
6f78e00c42
|
|
@ -3,17 +3,19 @@ use std::io::{ErrorKind, Write};
|
||||||
use std::path::{Path, PathBuf};
|
use std::path::{Path, PathBuf};
|
||||||
use std::time::{SystemTime, UNIX_EPOCH};
|
use std::time::{SystemTime, UNIX_EPOCH};
|
||||||
|
|
||||||
|
use chownr;
|
||||||
use digest::Digest;
|
use digest::Digest;
|
||||||
use failure::Error;
|
|
||||||
use hex;
|
use hex;
|
||||||
use mkdirp;
|
use mkdirp;
|
||||||
use nix::unistd::{Uid, Gid};
|
use nix::unistd::{Uid, Gid};
|
||||||
use serde_derive::{Deserialize, Serialize};
|
use serde_derive::{Deserialize, Serialize};
|
||||||
use serde_json::{self, json, Value};
|
use serde_json::{json, Value};
|
||||||
use sha1::Sha1;
|
use sha1::Sha1;
|
||||||
use sha2::Sha256;
|
use sha2::Sha256;
|
||||||
use ssri::Integrity;
|
use ssri::Integrity;
|
||||||
|
|
||||||
|
use crate::errors::Error;
|
||||||
|
|
||||||
const INDEX_VERSION: &str = "5";
|
const INDEX_VERSION: &str = "5";
|
||||||
|
|
||||||
#[derive(PartialEq, Debug)]
|
#[derive(PartialEq, Debug)]
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue