diff --git a/flake.nix b/flake.nix index ae14d56..bff0fff 100644 --- a/flake.nix +++ b/flake.nix @@ -26,7 +26,11 @@ # upstream ideally) so this interface might be brittle, but avoids # accidentally passing a detached nixpkgs from its flake (or its follows) # on to consumers. - craneLib = crane.mkLib final; + craneLib = (crane.mkLib final).overrideScope (_: scopePrev: { + mkCargoDerivation = args: scopePrev.mkCargoDerivation ({ + RUSTFLAGS = "-D warnings"; + } // args); + }); }; in { packages.${system}.${pname} = pkgs.${pname}; diff --git a/src/issuer.rs b/src/issuer.rs index 9a2a0e9..509a517 100644 --- a/src/issuer.rs +++ b/src/issuer.rs @@ -240,7 +240,10 @@ impl std::convert::From for IssuerError { #[derive(Debug)] enum ResolverError<'l> { SystemResolveConf, - NoIpsForResolversFound(&'l String), + NoIpsForResolversFound( + #[allow(dead_code)] + &'l String + ), Other }