Enable clippy and tests on the entire workspace

This commit is contained in:
Jay Oster 2019-10-06 02:31:29 -07:00
parent 3b7638a012
commit aa9fdf56bf
2 changed files with 8 additions and 2 deletions

View file

@ -16,6 +16,6 @@ before_script:
- rustup component add rustfmt - rustup component add rustfmt
script: script:
- cargo clippy -- -D warnings - cargo clippy --workspace -- -D warnings
- cargo test - cargo test --workspace
- cargo fmt --all -- --check - cargo fmt --all -- --check

View file

@ -228,6 +228,12 @@ impl World {
} }
} }
impl Default for World {
fn default() -> Self {
World::new()
}
}
impl Point { impl Point {
const fn new(x: usize, y: usize) -> Point { const fn new(x: usize, y: usize) -> Point {
Point { x, y } Point { x, y }