X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=src%2Fhttp.rs;h=eb97c12568ce18693e110d3e072888bfd32a8b86;hb=78af60e0fbddbf73c44a7a46952c42b0a57be2cb;hp=ab162c94e68f2e5d65c9adfcbcd7f3cfb723250f;hpb=9bfff3609162efcca02310d4d9231054b6d824fd;p=dnssec-prover diff --git a/src/http.rs b/src/http.rs index ab162c9..eb97c12 100644 --- a/src/http.rs +++ b/src/http.rs @@ -4,8 +4,16 @@ // const_slice_from_raw_parts was stabilized in 1.64, however we support building on 1.63 as well. // Luckily, it seems to work fine in 1.63 with the feature flag (and RUSTC_BOOTSTRAP=1) enabled. -#![cfg_attr(feature = "validation", allow(stable_features))] -#![cfg_attr(feature = "validation", feature(const_slice_from_raw_parts))] +#![cfg_attr(all(feature = "validation", rust_1_63), feature(const_slice_from_raw_parts))] + +#![allow(clippy::new_without_default)] // why is this even a lint +#![allow(clippy::result_unit_err)] // Why in the hell is this a lint? +#![allow(clippy::get_first)] // Sometimes this improves readability +#![allow(clippy::needless_lifetimes)] // lifetimes improve readability +#![allow(clippy::needless_borrow)] // borrows indicate read-only/non-move +#![allow(clippy::too_many_arguments)] // sometimes we don't have an option +#![allow(clippy::identity_op)] // sometimes identities improve readability for repeated actions +#![allow(clippy::erasing_op)] // sometimes identities improve readability for repeated actions extern crate alloc;