Skip to content

Commit d71427c

Browse files
committed
Clean up some warnings
1 parent bb3806b commit d71427c

File tree

3 files changed

+2
-4
lines changed

3 files changed

+2
-4
lines changed

src/lib.rs

-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
// limitations under the License.
1414
extern crate num_traits;
1515

16-
use std::ascii::AsciiExt;
1716
use std::default::Default;
1817
use std::fmt;
1918

src/tokenizer.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ fn is_numberlike(c: char) -> bool {
4343
}
4444
}
4545

46-
pub type PeekableTokens<T: CoordType> = Peekable<Tokens<T>>;
46+
pub type PeekableTokens<T> = Peekable<Tokens<T>>;
4747

4848
pub struct Tokens<T>
4949
where T: CoordType,
@@ -82,7 +82,7 @@ impl<T: CoordType> Iterator for Tokens<T> {
8282
number = number.trim_left_matches('+').to_string();
8383
match number.parse::<T>() {
8484
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),
8686
}
8787
}
8888
c => {

src/types/mod.rs

-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
// See the License for the specific language governing permissions and
1313
// limitations under the License.
1414

15-
use std::ascii::AsciiExt;
1615
use std::default::Default;
1716

1817
use tokenizer::{PeekableTokens, Token};

0 commit comments

Comments
 (0)