summaryrefslogtreecommitdiffstats
path: root/src/registration.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/registration.rs')
-rw-r--r--src/registration.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/registration.rs b/src/registration.rs
index 5379e87..22228ad 100644
--- a/src/registration.rs
+++ b/src/registration.rs
@@ -2,7 +2,7 @@ use std::borrow::Cow;
use reqwest::blocking::{Client, RequestBuilder, Response};
use serde::Deserialize;
-use try_from::TryInto;
+use std::convert::TryInto;
use crate::{
apps::{App, AppBuilder},
@@ -125,7 +125,7 @@ impl<'a> Registration<'a> {
/// ```
pub fn register<I: TryInto<App>>(&mut self, app: I) -> Result<Registered>
where
- Error: From<<I as TryInto<App>>::Err>,
+ Error: From<<I as TryInto<App>>::Error>,
{
let app = app.try_into()?;
let oauth = self.send_app(&app)?;