Remove unused dependency

This commit is contained in:
Fabian Stamm 2023-02-06 14:24:46 +01:00
parent db06b7c7d0
commit 747c4ddf6f
3 changed files with 4 additions and 13 deletions

9
Cargo.lock generated
View File

@ -755,7 +755,7 @@ dependencies = [
[[package]]
name = "rustocat"
version = "0.1.1"
version = "0.1.2"
dependencies = [
"async-trait",
"chrono",
@ -766,7 +766,6 @@ dependencies = [
"serde",
"serde_json",
"serde_yaml",
"simple-error",
"tokio",
]
@ -885,12 +884,6 @@ dependencies = [
"libc",
]
[[package]]
name = "simple-error"
version = "0.2.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "cc47a29ce97772ca5c927f75bac34866b16d64e07f330c3248e2d7226623901b"
[[package]]
name = "slab"
version = "0.4.7"

View File

@ -1,6 +1,6 @@
[package]
name = "rustocat"
version = "0.1.1"
version = "0.1.2"
edition = "2021"
description = "Socat in rust with many less features and a configuration file"
license = "ISC"
@ -15,12 +15,11 @@ tokio = { version = "1", features = ["full"] }
serde = { version = "1", features = ["derive"] }
serde_json = "1"
serde_yaml = "0.9"
simple-error = "0.2"
rand = "0.8"
log = "0.4"
fern = "0.6"
chrono = "0.4"
async-trait = "0.1.64"
async-trait = "0.1"
reqwest = { version = "0.11", features = ["json"] }
[profile.release]

View File

@ -1,7 +1,6 @@
use std::{fs::File, path::Path};
use serde::Deserialize;
use simple_error::bail;
use tokio::signal::unix::Signal;
use crate::Result;
@ -70,7 +69,7 @@ impl FileConfigProvider {
return config;
}
}
bail!("No config file found");
Err("No config file found".into())
}
}