aboutsummaryrefslogtreecommitdiffhomepage
path: root/crates/shirabe/src/util/perforce.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/shirabe/src/util/perforce.rs')
-rw-r--r--crates/shirabe/src/util/perforce.rs8
1 files changed, 1 insertions, 7 deletions
diff --git a/crates/shirabe/src/util/perforce.rs b/crates/shirabe/src/util/perforce.rs
index 1f64dcc..937e305 100644
--- a/crates/shirabe/src/util/perforce.rs
+++ b/crates/shirabe/src/util/perforce.rs
@@ -682,13 +682,7 @@ impl Perforce {
let res_array = explode(PHP_EOL, &result);
for line in &res_array {
let res_bits = explode(" ", line);
- if count(&PhpMixed::List(
- res_bits
- .iter()
- .map(|s| Box::new(PhpMixed::String(s.clone())))
- .collect(),
- )) > 4
- {
+ if res_bits.len() > 4 {
let branch = Preg::replace(
r"/[^A-Za-z0-9 ]/",
"",