diff --git a/peach-lib/src/error.rs b/peach-lib/src/error.rs index 68a98c4..9c55c1d 100644 --- a/peach-lib/src/error.rs +++ b/peach-lib/src/error.rs @@ -2,8 +2,8 @@ //! Error handling for various aspects of the PeachCloud system, including the network, OLED, stats and dyndns JSON-RPC clients, as well as the configuration manager, sbot client and password utilities. -use std::{io, str, string}; use golgi::GolgiError; +use std::{io, str, string}; /// This type represents all possible errors that can occur when interacting with the PeachCloud library. #[derive(Debug)] @@ -267,4 +267,4 @@ impl From for PeachError { fn from(err: GolgiError) -> PeachError { PeachError::Golgi(err) } -} \ No newline at end of file +} diff --git a/peach-lib/src/sbot.rs b/peach-lib/src/sbot.rs index 916d0d1..730df22 100644 --- a/peach-lib/src/sbot.rs +++ b/peach-lib/src/sbot.rs @@ -2,9 +2,7 @@ use std::{fs, fs::File, io, io::Write, path::PathBuf, process::Command, str}; -use golgi::{ - sbot::Keystore, Sbot, -}; +use golgi::{sbot::Keystore, Sbot}; use log::debug; use crate::config_manager; @@ -248,7 +246,6 @@ impl SbotConfig { /// Initialise an sbot client pub async fn init_sbot() -> Result { - // read sbot config from config.toml let sbot_config = SbotConfig::read().ok();