Cargo fmt
continuous-integration/drone/pr Build is passing Details

This commit is contained in:
notplants 2022-07-04 14:54:00 +02:00
parent 7e94135839
commit 1258a3697d
2 changed files with 3 additions and 6 deletions

View File

@ -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<GolgiError> for PeachError {
fn from(err: GolgiError) -> PeachError {
PeachError::Golgi(err)
}
}
}

View File

@ -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<Sbot, PeachError> {
// read sbot config from config.toml
let sbot_config = SbotConfig::read().ok();