diff --git a/qbittorrent-rs b/qbittorrent-rs index ff628b0..e3e9e26 160000 --- a/qbittorrent-rs +++ b/qbittorrent-rs @@ -1 +1 @@ -Subproject commit ff628b05cf82f053a2bf69f6b961b5afe4e2c1f0 +Subproject commit e3e9e26be49aeb34b3985dafbfd043ba6fcc51e2 diff --git a/src/client/mod.rs b/src/client/mod.rs index 1073f71..29cc12c 100644 --- a/src/client/mod.rs +++ b/src/client/mod.rs @@ -7,8 +7,8 @@ use crate::{torrent::{TorrentInfo, TorrentTracker, TorrentUpload}, error::Client pub type ClientResult = Result; #[async_trait] -pub trait TorrentClient<'a> { - async fn login(&mut self, url: &'a str, username: &'a str, password: &'a str) -> ClientResult<()>; +pub trait TorrentClient { + async fn login(&mut self, url: &str, username: &str, password: &str) -> ClientResult<()>; async fn get_torrent_list(&self) -> ClientResult>; diff --git a/src/client/qbittorrent.rs b/src/client/qbittorrent.rs index 81904c0..9b86363 100644 --- a/src/client/qbittorrent.rs +++ b/src/client/qbittorrent.rs @@ -92,8 +92,8 @@ impl From for crate::torrent::TrackerStatus { } #[async_trait] -impl<'a> TorrentClient<'a> for QBittorrentClient<'a> { - async fn login(&mut self, url: &'a str, username: &'a str, password: &'a str) -> ClientResult<()> { +impl TorrentClient for QBittorrentClient { + async fn login(&mut self, url: &str, username: &str, password: &str) -> ClientResult<()> { Ok(Self::login(&mut self, url, username, password).await?) }