Enable clippy and tests on the entire workspace
This commit is contained in:
parent
3b7638a012
commit
aa9fdf56bf
|
@ -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
|
||||||
|
|
|
@ -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 }
|
||||||
|
|
Loading…
Reference in a new issue