File tree 3 files changed +2
-4
lines changed
3 files changed +2
-4
lines changed Original file line number Diff line number Diff line change 13
13
// limitations under the License.
14
14
extern crate num_traits;
15
15
16
- use std:: ascii:: AsciiExt ;
17
16
use std:: default:: Default ;
18
17
use std:: fmt;
19
18
Original file line number Diff line number Diff line change @@ -43,7 +43,7 @@ fn is_numberlike(c: char) -> bool {
43
43
}
44
44
}
45
45
46
- pub type PeekableTokens < T : CoordType > = Peekable < Tokens < T > > ;
46
+ pub type PeekableTokens < T > = Peekable < Tokens < T > > ;
47
47
48
48
pub struct Tokens < T >
49
49
where T : CoordType ,
@@ -82,7 +82,7 @@ impl<T: CoordType> Iterator for Tokens<T> {
82
82
number = number. trim_left_matches ( '+' ) . to_string ( ) ;
83
83
match number. parse :: < T > ( ) {
84
84
Ok ( parsed_num) => Some ( Token :: Number ( parsed_num) ) ,
85
- Err ( e ) => panic ! ( "Could not parse number: {}" , c) ,
85
+ Err ( _ ) => panic ! ( "Could not parse number: {}" , c) ,
86
86
}
87
87
}
88
88
c => {
Original file line number Diff line number Diff line change 12
12
// See the License for the specific language governing permissions and
13
13
// limitations under the License.
14
14
15
- use std:: ascii:: AsciiExt ;
16
15
use std:: default:: Default ;
17
16
18
17
use tokenizer:: { PeekableTokens , Token } ;
You can’t perform that action at this time.
0 commit comments