Skip to content

Commit 84b1c29

Browse files
committed
fix
1 parent 0ef70ea commit 84b1c29

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/rust/client_gen.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -493,7 +493,7 @@ fn response_type(response: &ReferenceOr<Response>, ref_cache: &mut RefCache) ->
493493
"Reference in response top level: {reference}"
494494
))),
495495
ReferenceOr::Item(resp) => {
496-
if resp.content.len() == 0 {
496+
if resp.content.is_empty() {
497497
// No content case
498498
Ok(DataType::Unit)
499499
} else if resp.content.len() == 1 {

0 commit comments

Comments
 (0)