chore: setup clippy

This commit is contained in:
dignifiedquire
2019-08-13 12:06:57 +02:00
parent 6067160582
commit 20f9bb3b14
2 changed files with 22 additions and 3 deletions

View File

@@ -1,3 +1,8 @@
#![deny(clippy::correctness)]
// TODO: make all of these errors, such that clippy actually passes.
#![warn(clippy::all, clippy::perf, clippy::not_unsafe_ptr_arg_deref)]
// This is nice, but for now just annoying.
#![allow(clippy::unreadable_literal)]
#![feature(c_variadic, ptr_wrapping_offset_from, ptr_cast)]
#[macro_use]