Skip to content

Commit

Permalink
Correcting sync trait signature
Browse files Browse the repository at this point in the history
  • Loading branch information
mettke committed Nov 1, 2020
1 parent 9481af3 commit 118a40e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/sync/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ pub mod requests;
#[cfg(feature = "reqwest_blocking")]
pub use self::requests::default_client;

use std::{borrow::Borrow, error};
use std::error;

/// Functionality for sending authenticated and unauthenticated requests to Slack via HTTP.
///
Expand Down
6 changes: 3 additions & 3 deletions src/sync/requests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ mod reqwest_support {
impl SlackWebRequestSender for Client {
type Error = reqwest::Error;

fn get<I, K, V, S>(
fn get<S>(
&self,
method_url: S,
params: &[(&str, String)],
Expand All @@ -28,7 +28,7 @@ mod reqwest_support {
Ok(self.get(url).send()?.text()?)
}

fn post<I, K, V, S>(
fn post<S>(
&self,
method_url: S,
form: &[(&str, String)],
Expand All @@ -41,7 +41,7 @@ mod reqwest_support {
let mut req = self.post(url).form(form);
for v in headers {
let (k, v) = v.borrow();
req = req.header(k.as_ref(), v.as_ref());
req = req.header(*k, v);
}
Ok(req.send()?.text()?)
}
Expand Down

0 comments on commit 118a40e

Please sign in to comment.