Skip to content

Commit 9e93a71

Browse files
committed
thanks clippy
1 parent 2c5b955 commit 9e93a71

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

gitoxide-core/src/organize.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ mod parse {
2121
use anyhow::{bail, Context};
2222
use bstr::{BStr, ByteSlice};
2323

24+
#[allow(unused)]
2425
fn verbose_remotes(input: &[u8]) -> anyhow::Result<Vec<(&BStr, git_url::Url)>> {
2526
fn parse_line(line: &BStr) -> anyhow::Result<(&BStr, git_url::Url)> {
2627
let mut tokens = line.splitn(2, |b| *b == b'\t');
@@ -39,7 +40,7 @@ mod parse {
3940
let mut out = Vec::new();
4041
for line in input.split(|b| *b == b'\n') {
4142
let line = line.as_bstr();
42-
if line.trim().len() == 0 {
43+
if line.trim().is_empty() {
4344
continue;
4445
}
4546
out.push(

0 commit comments

Comments
 (0)