Skip to content
This repository was archived by the owner on May 13, 2026. It is now read-only.

Commit 979a574

Browse files
chore: fix Clippy issues for Rust 1.88
1 parent db4267c commit 979a574

10 files changed

Lines changed: 12 additions & 12 deletions

File tree

src/core/types/url_encodable_vec.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,13 @@ where
1717
let mut serialized = String::new();
1818

1919
for (index, item) in self.0.iter().enumerate() {
20-
write!(&mut serialized, "{}", item).map_err(|err| {
21-
ser::Error::custom(format!("failed to write '{}': {}", item, err))
20+
write!(&mut serialized, "{item}").map_err(|err| {
21+
ser::Error::custom(format!("failed to write '{item}': {err}"))
2222
})?;
2323

2424
if index < self.0.len() - 1 {
2525
write!(&mut serialized, ",").map_err(|err| {
26-
ser::Error::custom(format!("failed to write separator: {}", err))
26+
ser::Error::custom(format!("failed to write separator: {err}"))
2727
})?
2828
}
2929
}

src/directory_sync/operations/get_directory.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ impl GetDirectory for DirectorySync<'_> {
4747
let url = self
4848
.workos
4949
.base_url()
50-
.join(&format!("/directories/{id}", id = id))?;
50+
.join(&format!("/directories/{id}"))?;
5151
let directory = self
5252
.workos
5353
.client()

src/directory_sync/operations/get_directory_group.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ impl GetDirectoryGroup for DirectorySync<'_> {
5555
let url = self
5656
.workos
5757
.base_url()
58-
.join(&format!("/directory_groups/{id}", id = id))?;
58+
.join(&format!("/directory_groups/{id}"))?;
5959
let directory_group = self
6060
.workos
6161
.client()

src/directory_sync/operations/get_directory_user.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ impl GetDirectoryUser for DirectorySync<'_> {
5555
let url = self
5656
.workos
5757
.base_url()
58-
.join(&format!("/directory_users/{id}", id = id))?;
58+
.join(&format!("/directory_users/{id}"))?;
5959
let directory_user = self
6060
.workos
6161
.client()

src/organizations/operations/get_organization.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ impl GetOrganization for Organizations<'_> {
5353
let url = self
5454
.workos
5555
.base_url()
56-
.join(&format!("/organizations/{id}", id = id))?;
56+
.join(&format!("/organizations/{id}"))?;
5757
let organization = self
5858
.workos
5959
.client()

src/sso/operations/get_authorization_url.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ impl GetAuthorizationUrl for Sso<'_> {
120120

121121
self.workos
122122
.base_url()
123-
.join(&format!("/sso/authorize?{}", query))
123+
.join(&format!("/sso/authorize?{query}"))
124124
}
125125
}
126126

src/sso/operations/get_connection.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ impl GetConnection for Sso<'_> {
5353
let url = self
5454
.workos
5555
.base_url()
56-
.join(&format!("/connections/{id}", id = id))?;
56+
.join(&format!("/connections/{id}"))?;
5757
let connection = self
5858
.workos
5959
.client()

src/user_management/operations/get_authorization_url.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ impl GetAuthorizationUrl for UserManagement<'_> {
184184

185185
self.workos
186186
.base_url()
187-
.join(&format!("/user_management/authorize?{}", query))
187+
.join(&format!("/user_management/authorize?{query}"))
188188
}
189189
}
190190

src/user_management/operations/get_logout_url.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ impl GetLogoutUrl for UserManagement<'_> {
6363
let url = self
6464
.workos
6565
.base_url()
66-
.join(&format!("/user_management/sessions/logout?{}", query))?;
66+
.join(&format!("/user_management/sessions/logout?{query}"))?;
6767

6868
Ok(url)
6969
}

src/user_management/operations/get_user.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ impl GetUser for UserManagement<'_> {
4747
let url = self
4848
.workos
4949
.base_url()
50-
.join(&format!("/user_management/users/{id}", id = id))?;
50+
.join(&format!("/user_management/users/{id}"))?;
5151
let user = self
5252
.workos
5353
.client()

0 commit comments

Comments
 (0)