Skip to content

Commit 474f71b

Browse files
committed
fix(clippy): satisfy rust-1.97 manual_filter and useless_borrows_in_formatting
1 parent 332c4a4 commit 474f71b

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

‎src/commands/import.rs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ async fn create_issues(
229229
);
230230
if let Some(ref desc) = row.description {
231231
let preview = if desc.len() > 80 {
232-
format!("{}...", &desc.chars().take(80).collect::<String>())
232+
format!("{}...", desc.chars().take(80).collect::<String>())
233233
} else {
234234
desc.clone()
235235
};

‎src/commands/templates.rs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -347,7 +347,7 @@ fn create_template(
347347
|| team.is_some();
348348

349349
if has_flag_values || output.is_json() || output.has_template() || output.dry_run {
350-
let default_priority = default_priority.and_then(|p| if p == 0 { None } else { Some(p) });
350+
let default_priority = default_priority.filter(|&p| p != 0);
351351
let default_labels: Vec<String> = labels
352352
.into_iter()
353353
.map(|s| s.trim().to_string())

0 commit comments

Comments
 (0)