fix: silence collapsible_match clippy lint (rustc 1.95)

Made-with: Cursor
This commit is contained in:
Syed Hashmi 2026-04-21 13:29:55 -07:00
parent a04571afbc
commit cb2fdc9dbf
No known key found for this signature in database
5 changed files with 21 additions and 29 deletions

View file

@ -317,11 +317,10 @@ impl TryFrom<Message> for BedrockMessage {
Role::User => {
// Convert user message content to content blocks
match message.content {
Some(MessageContent::Text(text)) => {
if !text.is_empty() {
content_blocks.push(ContentBlock::Text { text });
}
Some(MessageContent::Text(text)) if !text.is_empty() => {
content_blocks.push(ContentBlock::Text { text });
}
Some(MessageContent::Text(_)) => {}
Some(MessageContent::Parts(parts)) => {
// Convert OpenAI content parts to Bedrock ContentBlocks
for part in parts {