Skip to content

Commit 65cb283

Browse files
committed
chore: cargo clippy --fix
1 parent 88ccac0 commit 65cb283

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

examples/service-info.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ async fn main() -> Result<()> {
4747
if let Some(username) = username {
4848
let credentials = format!("{}:{}", username, password.unwrap());
4949
let encoded = BASE64_STANDARD.encode(credentials);
50-
builder = builder.insert_header("Authorization", format!("Basic {}", encoded));
50+
builder = builder.insert_header("Authorization", format!("Basic {encoded}"));
5151
}
5252

5353
let client = builder.try_build().expect("could not build client");

examples/task-get.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ async fn main() -> Result<()> {
4848
if let Some(username) = username {
4949
let credentials = format!("{}:{}", username, password.unwrap());
5050
let encoded = BASE64_STANDARD.encode(credentials);
51-
builder = builder.insert_header("Authorization", format!("Basic {}", encoded));
51+
builder = builder.insert_header("Authorization", format!("Basic {encoded}"));
5252
}
5353

5454
let client = builder.try_build().expect("could not build client");

examples/task-list-all.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ async fn list_all_tasks(client: &Client) -> Result<()> {
4040
.into_diagnostic()
4141
.context("listing tasks")?;
4242

43-
println!("{:#?}", response);
43+
println!("{response:#?}");
4444

4545
last_token = response.next_page_token;
4646
if last_token.is_none() {
@@ -73,7 +73,7 @@ async fn main() -> Result<()> {
7373
if let Some(username) = username {
7474
let credentials = format!("{}:{}", username, password.unwrap());
7575
let encoded = BASE64_STANDARD.encode(credentials);
76-
builder = builder.insert_header("Authorization", format!("Basic {}", encoded));
76+
builder = builder.insert_header("Authorization", format!("Basic {encoded}"));
7777
}
7878

7979
let client = builder.try_build().expect("could not build client");

examples/task-submit.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ async fn main() -> Result<()> {
4848
if let Some(username) = username {
4949
let credentials = format!("{}:{}", username, password.unwrap());
5050
let encoded = BASE64_STANDARD.encode(credentials);
51-
builder = builder.insert_header("Authorization", format!("Basic {}", encoded));
51+
builder = builder.insert_header("Authorization", format!("Basic {encoded}"));
5252
}
5353

5454
let client = builder.try_build().expect("could not build client");

0 commit comments

Comments
 (0)