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
|
||||
|
||||
script:
|
||||
- cargo clippy -- -D warnings
|
||||
- cargo test
|
||||
- cargo clippy --workspace -- -D warnings
|
||||
- cargo test --workspace
|
||||
- cargo fmt --all -- --check
|
||||
|
|
|
@ -228,6 +228,12 @@ impl World {
|
|||
}
|
||||
}
|
||||
|
||||
impl Default for World {
|
||||
fn default() -> Self {
|
||||
World::new()
|
||||
}
|
||||
}
|
||||
|
||||
impl Point {
|
||||
const fn new(x: usize, y: usize) -> Point {
|
||||
Point { x, y }
|
||||
|
|
Loading…
Reference in a new issue