Allow float_cmp since we use it to check if floating point values changed from the last value assigned, not compare two different floating point values; downgrade not_unsafe_ptr_arg_deref to warning

This commit is contained in:
ice_iix 2020-06-30 19:01:17 -07:00
parent c4690bba32
commit bffb33297f
2 changed files with 5 additions and 3 deletions

View File

@ -6,7 +6,7 @@ jobs:
displayName: "Install build dependencies"
condition: eq(variables['Agent.OS'], 'Linux')
minrust: 1.44.1
clippy: -A clippy::not_unsafe_ptr_arg_deref -A clippy::float_cmp
clippy:
resources:
repositories:

View File

@ -13,8 +13,10 @@
// limitations under the License.
#![recursion_limit = "300"]
#![allow(clippy::too_many_arguments)]
#![allow(clippy::many_single_char_names)]
#![allow(clippy::too_many_arguments)] // match standard gl functions with many arguments
#![allow(clippy::many_single_char_names)] // short variable names provide concise clarity
#![warn(clippy::not_unsafe_ptr_arg_deref)] // TODO: fix unsafe warnings
#![allow(clippy::float_cmp)] // float comparison used to check if changed
use log::{error, info, warn};
use std::time::{Duration, Instant};