Cargo-fmt pass
This commit is contained in:
+1
-4
@@ -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
@@ -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
@@ -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
@@ -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> {
|
||||
|
||||
Reference in New Issue
Block a user