Skip to content

Commit bbadbcf

Browse files
committed
---
yaml --- r: 275233 b: refs/heads/stable c: c82be2f h: refs/heads/master i: 275231: 8d0dffa
1 parent 35bbd28 commit bbadbcf

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ refs/heads/tmp: e06d2ad9fcd5027bcaac5b08fc9aa39a49d0ecd3
2929
refs/tags/1.0.0-alpha.2: 4c705f6bc559886632d3871b04f58aab093bfa2f
3030
refs/tags/homu-tmp: c0221c8897db309a79990367476177b1230bb264
3131
refs/tags/1.0.0-beta: 8cbb92b53468ee2b0c2d3eeb8567005953d40828
32-
refs/heads/stable: 8adc3f74f53a59d62ac914e920d5547a3e460924
32+
refs/heads/stable: c82be2f4cb909a70b870ab2fb176e54a91e5372f
3333
refs/tags/1.0.0: 55bd4f8ff2b323f317ae89e254ce87162d52a375
3434
refs/tags/1.1.0: bc3c16f09287e5545c1d3f76b7abd54f2eca868b
3535
refs/tags/1.2.0: f557861f822c34f07270347b94b5280de20a597e

branches/stable/src/libstd/path.rs

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -393,11 +393,8 @@ fn iter_after<A, I, J>(mut iter: I, mut prefix: J) -> Option<I>
393393
loop {
394394
let mut iter_next = iter.clone();
395395
match (iter_next.next(), prefix.next()) {
396-
(Some(x), Some(y)) => {
397-
if x != y {
398-
return None;
399-
}
400-
}
396+
(Some(ref x), Some(ref y)) if x == y => (),
397+
(Some(_), Some(_)) => return None,
401398
(Some(_), None) => return Some(iter),
402399
(None, None) => return Some(iter),
403400
(None, Some(_)) => return None,

0 commit comments

Comments
 (0)