style: run cargo fmt on examples

This commit is contained in:
2026-10-26 20:34:40 +00:00
parent a8961b12e3
commit c911fc382e
4 changed files with 72 additions and 66 deletions

View File

@@ -19,10 +19,12 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
.add_text_part("Answer as if you were Yoda")
.build();
let user_prompt = vec![Content::builder()
.role(Role::User)
.add_text_part("What is the airspeed of an unladen swallow?")
.build()];
let user_prompt = vec![
Content::builder()
.role(Role::User)
.add_text_part("What is the airspeed of an unladen swallow?")
.build(),
];
let request = GenerateContentRequest::builder()
.contents(user_prompt)