File tree Expand file tree Collapse file tree 2 files changed +1
-17
lines changed Expand file tree Collapse file tree 2 files changed +1
-17
lines changed Original file line number Diff line number Diff line change @@ -47,7 +47,7 @@ pub fn from(s: &str) -> usize {
47
47
let mut last_i = s. len ( ) ;
48
48
for ( i, c) in iter {
49
49
if down {
50
- if c. is_uppercase ( ) {
50
+ if c. is_uppercase ( ) && !s . chars ( ) . nth ( i - 1 ) . unwrap ( ) . is_uppercase ( ) {
51
51
down = false ;
52
52
last_i = i;
53
53
} else if !c. is_lowercase ( ) {
Original file line number Diff line number Diff line change 1
- error: local variable doesn't need to be boxed here
2
- --> $DIR/escape_analysis.rs:39:13
3
- |
4
- LL | fn warn_arg(x: Box<A>) {
5
- | ^
6
- |
7
- = note: `-D clippy::boxed-local` implied by `-D warnings`
8
-
9
- error: local variable doesn't need to be boxed here
10
- --> $DIR/escape_analysis.rs:130:12
11
- |
12
- LL | pub fn new(_needs_name: Box<PeekableSeekable<&()>>) -> () {}
13
- | ^^^^^^^^^^^
14
-
15
- error: aborting due to 2 previous errors
16
-
You can’t perform that action at this time.
0 commit comments