fix compilation

This commit is contained in:
DieMyst 2021-02-12 14:54:38 +03:00
parent 3bcc928a72
commit 953e0b6f0a
2 changed files with 2 additions and 2 deletions

View File

@ -40,7 +40,7 @@ fn add_root(pk: String, weight: u32) -> AddRootResult {
} else { } else {
return AddRootResult { return AddRootResult {
ret_code: 1, ret_code: 1,
error: "Root could add only a host of trust graph service", error: "Root could add only a host of trust graph service".to_string(),
}; };
} }
} }

View File

@ -6,7 +6,7 @@ use std::convert::{Into, TryInto};
use std::str::FromStr; use std::str::FromStr;
use std::time::Duration; use std::time::Duration;
use thiserror::Error as ThisError; use thiserror::Error as ThisError;
use trust_graph::{CertificateError, PublicKeyHashable, TrustGraphError}; use trust_graph::{CertificateError, TrustGraphError};
#[derive(ThisError, Debug)] #[derive(ThisError, Debug)]
pub enum ServiceError { pub enum ServiceError {