We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7f4aba4 commit edabcddCopy full SHA for edabcdd
src/libcore/slice/mod.rs
@@ -3026,8 +3026,7 @@ macro_rules! len {
3026
if size == 0 {
3027
// This _cannot_ use `unchecked_sub` because we depend on wrapping
3028
// to represent the length of long ZST slice iterators.
3029
- let diff = ($self.end as usize).wrapping_sub(start as usize);
3030
- diff
+ ($self.end as usize).wrapping_sub(start as usize)
3031
} else {
3032
// We know that `start <= end`, so can do better than `offset_from`,
3033
// which needs to deal in signed. By setting appropriate flags here
0 commit comments