Add explicit clippy deny all, and forbid unsafe code (where possible) (#38)
This commit is contained in:
parent
e0225c145d
commit
a92adf1b12
|
@ -30,13 +30,13 @@ byteorder = "1.3"
|
||||||
env_logger = "0.7"
|
env_logger = "0.7"
|
||||||
getrandom = "0.1"
|
getrandom = "0.1"
|
||||||
gilrs = "0.7"
|
gilrs = "0.7"
|
||||||
|
line_drawing = "0.8"
|
||||||
log = { version = "0.4", features = ["release_max_level_warn"] }
|
log = { version = "0.4", features = ["release_max_level_warn"] }
|
||||||
pixels-mocks = { path = "pixels-mocks" }
|
pixels-mocks = { path = "pixels-mocks" }
|
||||||
|
randomize = "3.0"
|
||||||
simple-invaders = { path = "simple-invaders" }
|
simple-invaders = { path = "simple-invaders" }
|
||||||
winit = "0.20.0-alpha4"
|
winit = "0.20.0-alpha4"
|
||||||
winit_input_helper = "0.4.0-alpha4"
|
winit_input_helper = "0.4.0-alpha4"
|
||||||
randomize = "3.0"
|
|
||||||
line_drawing = "0.8"
|
|
||||||
|
|
||||||
[workspace]
|
[workspace]
|
||||||
members = [
|
members = [
|
||||||
|
|
|
@ -1,3 +1,6 @@
|
||||||
|
#![deny(clippy::all)]
|
||||||
|
#![forbid(unsafe_code)]
|
||||||
|
|
||||||
use log::debug;
|
use log::debug;
|
||||||
use pixels::{Error, Pixels, SurfaceTexture};
|
use pixels::{Error, Pixels, SurfaceTexture};
|
||||||
use winit::dpi::{LogicalPosition, LogicalSize, PhysicalSize};
|
use winit::dpi::{LogicalPosition, LogicalSize, PhysicalSize};
|
||||||
|
|
|
@ -1,3 +1,6 @@
|
||||||
|
#![deny(clippy::all)]
|
||||||
|
#![forbid(unsafe_code)]
|
||||||
|
|
||||||
use std::env;
|
use std::env;
|
||||||
use std::time::Instant;
|
use std::time::Instant;
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
#![deny(clippy::all)]
|
||||||
|
|
||||||
pub struct RWH;
|
pub struct RWH;
|
||||||
|
|
||||||
unsafe impl raw_window_handle::HasRawWindowHandle for RWH {
|
unsafe impl raw_window_handle::HasRawWindowHandle for RWH {
|
||||||
|
|
|
@ -4,6 +4,9 @@
|
||||||
//! this in practice. That said, the game is fully functional, and it should not be too difficult
|
//! this in practice. That said, the game is fully functional, and it should not be too difficult
|
||||||
//! to understand the code.
|
//! to understand the code.
|
||||||
|
|
||||||
|
#![deny(clippy::all)]
|
||||||
|
#![forbid(unsafe_code)]
|
||||||
|
|
||||||
use std::time::Duration;
|
use std::time::Duration;
|
||||||
|
|
||||||
use crate::collision::Collision;
|
use crate::collision::Collision;
|
||||||
|
|
Loading…
Reference in a new issue