Cargo-fmt pass

This commit is contained in:
Paul Woolcock
2020-09-25 16:44:06 -04:00
parent 0b4ee7bfb2
commit a69d0ea928
24 changed files with 141 additions and 117 deletions
+1 -4
View File
@@ -1,9 +1,6 @@
use std::io::{self, BufRead, Write};
use crate::errors::Result;
use crate::http_send::HttpSend;
use crate::registration::Registered;
use crate::Mastodon;
use crate::{errors::Result, http_send::HttpSend, registration::Registered, Mastodon};
/// Finishes the authentication process for the given `Registered` object,
/// using the command-line
+1 -2
View File
@@ -1,7 +1,6 @@
use envy;
use crate::data::Data;
use crate::Result;
use crate::{data::Data, Result};
/// Attempts to deserialize a Data struct from the environment
pub fn from_env() -> Result<Data> {
+1 -2
View File
@@ -6,8 +6,7 @@ use std::{
use serde_json;
use crate::data::Data;
use crate::Result;
use crate::{data::Data, Result};
/// Attempts to deserialize a Data struct from a string
pub fn from_str(s: &str) -> Result<Data> {
+1 -2
View File
@@ -4,8 +4,7 @@ use std::{
path::Path,
};
use crate::data::Data;
use crate::Result;
use crate::{data::Data, Result};
/// Attempts to deserialize a Data struct from a string
pub fn from_str(s: &str) -> Result<Data> {