Skip to content

Commit fee23bc

Browse files
committed
Removes needless dependency. Better .travis.yml file
1 parent 2fc7f34 commit fee23bc

File tree

5 files changed

+32
-9
lines changed

5 files changed

+32
-9
lines changed

.travis.yml

+29
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,35 @@
1+
sudo: false
2+
dist: trusty
13
language: rust
24

5+
matrix:
6+
fast_finish: true
7+
allow_failures:
8+
- rust: nightly
9+
310
rust:
411
- nightly
512
- beta
613
- stable
14+
15+
os:
16+
- linux
17+
- osx
18+
19+
before_script:
20+
- |
21+
pip install 'travis-cargo<0.2' --user &&
22+
export PATH=$HOME/.local/bin:$PATH
23+
24+
script:
25+
- |
26+
travis-cargo build &&
27+
travis-cargo test &&
28+
travis-cargo bench
29+
30+
after_success:
31+
- travis-cargo --only stable coveralls --no-sudo --verify
32+
33+
env:
34+
global:
35+
- TRAVIS_CARGO_NIGHTLY_FEATURE=""

Cargo.toml

-2
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,3 @@ version = "0.1.0"
44
authors = ["Sushant <[email protected]>"]
55

66
[dependencies]
7-
num = "*"
8-
petgraph = "*"

src/lexer.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
// except according to those terms.
77

88
use std::fmt::Debug;
9-
use num::traits::Num;
109
use std::collections::VecDeque;
1110

1211
const ESIL_INTERNAL_PREFIX: char = '$';
@@ -402,7 +401,7 @@ impl Tokenize for Tokenizer {
402401
_ => vec![Token::EInvalid],
403402
}
404403
} else if t.starts_with("0x") {
405-
match Num::from_str_radix(t.trim_left_matches("0x"), 16) {
404+
match u64::from_str_radix(t.trim_left_matches("0x"), 16) {
406405
Ok(v) => vec![Token::EConstant(v)],
407406
Err(_) => vec![Token::EInvalid],
408407
}

src/lib.rs

-3
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,6 @@
55
// This file may not be copied, modified, or distributed
66
// except according to those terms.
77

8-
extern crate num;
9-
extern crate petgraph;
10-
118
pub mod lexer;
129
pub mod parser;
1310
//pub mod memory;

src/parser.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -549,10 +549,10 @@ mod test {
549549
}
550550

551551
#[test]
552-
fn parser_skip_false() {
552+
fn parser_follow_false() {
553553
}
554554

555555
#[test]
556-
fn parser_folloow_true() {
556+
fn parser_follow_true() {
557557
}
558558
}

0 commit comments

Comments
 (0)