Skip to content

Commit 80490f1

Browse files
SachaMorardclaude
andcommitted
chore: cargo fmt
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 3969dea commit 80490f1

2 files changed

Lines changed: 3 additions & 4 deletions

File tree

examples/compression.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,8 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
8181
);
8282

8383
// Create input with compression settings using builder pattern
84-
let input = InputObject::new(vec![Message::user(user_message)])
85-
.with_compression_model("claude");
84+
let input =
85+
InputObject::new(vec![Message::user(user_message)]).with_compression_model("claude");
8686

8787
let response = client.send("anthropic/claude-haiku-4-5", input).await?;
8888

src/models.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -413,8 +413,7 @@ mod tests {
413413

414414
#[test]
415415
fn test_input_object_with_compression_builder() {
416-
let input = InputObject::new(vec![Message::user("Hello")])
417-
.with_compression_model("claude");
416+
let input = InputObject::new(vec![Message::user("Hello")]).with_compression_model("claude");
418417

419418
assert_eq!(input.compression_model, Some("claude".to_string()));
420419
}

0 commit comments

Comments
 (0)