Remove HttpSend and HttpSender

this was maybe a good idea, but it isn't really needed
This commit is contained in:
Paul Woolcock
2020-09-26 07:00:08 -04:00
parent cfe810be4e
commit d66c63dd28
12 changed files with 111 additions and 172 deletions
+2 -2
View File
@@ -1,10 +1,10 @@
use std::io::{self, BufRead, Write};
use crate::{errors::Result, http_send::HttpSend, registration::Registered, Mastodon};
use crate::{errors::Result, registration::Registered, Mastodon};
/// Finishes the authentication process for the given `Registered` object,
/// using the command-line
pub fn authenticate<H: HttpSend>(registration: Registered<H>) -> Result<Mastodon<H>> {
pub fn authenticate(registration: Registered) -> Result<Mastodon> {
let url = registration.authorize_url()?;
let stdout = io::stdout();