diff options
Diffstat (limited to 'crates/ra_syntax/src/lexer/ptr.rs')
-rw-r--r-- | crates/ra_syntax/src/lexer/ptr.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/crates/ra_syntax/src/lexer/ptr.rs b/crates/ra_syntax/src/lexer/ptr.rs index c4708cb1c..fa79d8862 100644 --- a/crates/ra_syntax/src/lexer/ptr.rs +++ b/crates/ra_syntax/src/lexer/ptr.rs | |||
@@ -134,10 +134,10 @@ mod tests { | |||
134 | #[test] | 134 | #[test] |
135 | fn test_nth_is_p() { | 135 | fn test_nth_is_p() { |
136 | let ptr = Ptr::new("test"); | 136 | let ptr = Ptr::new("test"); |
137 | assert!(ptr.nth_is_p(0,|c| c == 't')); | 137 | assert!(ptr.nth_is_p(0, |c| c == 't')); |
138 | assert!(!ptr.nth_is_p(1,|c| c == 't')); | 138 | assert!(!ptr.nth_is_p(1, |c| c == 't')); |
139 | assert!(ptr.nth_is_p(3,|c| c == 't')); | 139 | assert!(ptr.nth_is_p(3, |c| c == 't')); |
140 | assert!(!ptr.nth_is_p(150,|c| c == 't')); | 140 | assert!(!ptr.nth_is_p(150, |c| c == 't')); |
141 | } | 141 | } |
142 | 142 | ||
143 | #[test] | 143 | #[test] |