From 747c4ddf6fe2f0bc0fc0bbe57f6c9f0645f0831c Mon Sep 17 00:00:00 2001 From: Fabian Stamm Date: Mon, 6 Feb 2023 14:24:46 +0100 Subject: [PATCH] Remove unused dependency --- Cargo.lock | 9 +-------- Cargo.toml | 5 ++--- src/config.rs | 3 +-- 3 files changed, 4 insertions(+), 13 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 2e729cd..22bad56 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -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" diff --git a/Cargo.toml b/Cargo.toml index 9fe900c..8637a3a 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -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] diff --git a/src/config.rs b/src/config.rs index 45f5f47..4a458a9 100644 --- a/src/config.rs +++ b/src/config.rs @@ -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()) } }