Commit c4d715b 1 parent f57b3b9 commit c4d715b Copy full SHA for c4d715b
File tree 1 file changed +9
-0
lines changed
1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -164,7 +164,16 @@ impl Profiles {
164
164
/// Creates a new profile. It is not check if the maximum amount of profiles is already reached.
165
165
/// Use [`Profiles::max_profiles`] and the length of [`Profiles::profiles`] to check it
166
166
/// manually.
167
+ #[ allow( clippy:: new_ret_no_self) ]
168
+ #[ deprecated( since = "0.11.3" , note = "Use `new_profile` instead" ) ]
167
169
pub async fn new ( & self , profile_name : String , username : String ) -> Result < Profile > {
170
+ self . new_profile ( profile_name, username) . await
171
+ }
172
+
173
+ /// Creates a new profile. It is not check if the maximum amount of profiles is already reached.
174
+ /// Use [`Profiles::max_profiles`] and the length of [`Profiles::profiles`] to check it
175
+ /// manually.
176
+ pub async fn new_profile ( & self , profile_name : String , username : String ) -> Result < Profile > {
168
177
let endpoint = "https://www.crunchyroll.com/accounts/v1/me/multiprofile" ;
169
178
self . executor
170
179
. post ( endpoint)
You can’t perform that action at this time.
0 commit comments