diff --git a/src/lib.rs b/src/lib.rs index e887c39..a387abb 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -945,7 +945,7 @@ pub fn run() { "Remote branch {} not found", &upstream_branch_name )); - let split_at = upstream_branch_name.find("/").unwrap_or(0); + let split_at = upstream_branch_name.find('/').unwrap_or(0); if split_at == 0 || split_at >= upstream_branch_name.len() - 1 { print_error("Tracking branch needs to match the pattern /"); process::exit(1);