We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2c5b955 commit 9e93a71Copy full SHA for 9e93a71
gitoxide-core/src/organize.rs
@@ -21,6 +21,7 @@ mod parse {
21
use anyhow::{bail, Context};
22
use bstr::{BStr, ByteSlice};
23
24
+ #[allow(unused)]
25
fn verbose_remotes(input: &[u8]) -> anyhow::Result<Vec<(&BStr, git_url::Url)>> {
26
fn parse_line(line: &BStr) -> anyhow::Result<(&BStr, git_url::Url)> {
27
let mut tokens = line.splitn(2, |b| *b == b'\t');
@@ -39,7 +40,7 @@ mod parse {
39
40
let mut out = Vec::new();
41
for line in input.split(|b| *b == b'\n') {
42
let line = line.as_bstr();
- if line.trim().len() == 0 {
43
+ if line.trim().is_empty() {
44
continue;
45
}
46
out.push(
0 commit comments