Remove HttpSend and HttpSender
this was maybe a good idea, but it isn't really needed
This commit is contained in:
+2
-2
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user