Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit ae5945f

Browse files
committed
feat: Add more profile integration
1 parent e25aad1 commit ae5945f

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

‎Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "leetcoderustapi"
3-
version = "0.1.6"
3+
version = "0.1.7"
44
authors = ["Kirill Melkozerov <k.melkozerov@gmail.com>"]
55
edition = "2021"
66
license = "MIT"

‎README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ This Rust library provides a convenient way to interact with the LeetCode API, a
1111
Add the following line to your `Cargo.toml` file:
1212
```toml
1313
[dependencies]
14-
leetcoderustapi = "0.1.6"
14+
leetcoderustapi = "0.1.7"
1515
```
1616
## Usage
1717
### Authentication
@@ -118,7 +118,7 @@ async fn main() {
118118
.await
119119
.unwrap();
120120

121-
// Rename lists
121+
// Rename list
122122
user_profile
123123
.rename_fav_list("my_new_favorite_list", "hard_problems")
124124
.await
@@ -130,7 +130,7 @@ async fn main() {
130130
// Set list private
131131
user_profile.set_private("hard_problems").await.unwrap();
132132

133-
// Get link to the list if it is public
133+
// Get link to the list if it is a public
134134
user_profile.get_share_url("hard_problems").await.unwrap();
135135

136136
// Show existing lists

‎src/profile.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ pub struct MyProfile {
1212
}
1313

1414
impl MyProfile {
15-
pub async fn create_fav_list(&self, list_name: &str) -> Result<&MyProfile, Errors> {
15+
pub async fn create_list(&self, list_name: &str) -> Result<&MyProfile, Errors> {
1616
let query = json!({ "name": list_name });
1717

1818
let query = serde_json::to_string(&query)?;
@@ -28,7 +28,7 @@ impl MyProfile {
2828
self.fav_lists.clone()
2929
}
3030

31-
pub async fn rename_fav_list(
31+
pub async fn rename_list(
3232
&self,
3333
prev_list_name: &str,
3434
new_list_name: &str,

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /