Fix clippy::len_zero
lint style violations (#36589)
Related: #36577 Release Notes: - N/A --------- Signed-off-by: Umesh Yadav <git@umesh.dev>
This commit is contained in:
parent
92352f97ad
commit
1e6cefaa56
24 changed files with 46 additions and 46 deletions
|
@ -116,7 +116,7 @@ impl AgentTool for FindPathTool {
|
|||
..cmp::min(input.offset + RESULTS_PER_PAGE, matches.len())];
|
||||
|
||||
event_stream.update_fields(acp::ToolCallUpdateFields {
|
||||
title: Some(if paginated_matches.len() == 0 {
|
||||
title: Some(if paginated_matches.is_empty() {
|
||||
"No matches".into()
|
||||
} else if paginated_matches.len() == 1 {
|
||||
"1 match".into()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue