Skip to content

Commit

Permalink
fix: lint error
Browse files Browse the repository at this point in the history
  • Loading branch information
DieracDelta committed Nov 8, 2023
1 parent 7fa372f commit 5d77973
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 17 deletions.
18 changes: 9 additions & 9 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 2 additions & 8 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -36,19 +36,13 @@

CARGO_TARGET_DIR = "target_dirs/nix_rustc";

rustOverlay = final: prev: {
rustc = fenixStable;
cargo = fenixStable;
rust-src = fenixStable;
};

pkgs = import nixpkgs {
inherit system;
overlays = [ rustOverlay ];
};

buildDeps = with pkgs;
[
fenixStable
nixpkgs-fmt
fenix.packages.${system}.rust-analyzer
] ++ lib.optionals stdenv.isDarwin [
Expand All @@ -59,7 +53,7 @@
in {
devShell = pkgs.mkShell {
inherit CARGO_TARGET_DIR;
buildInputs = [ fenixStable ] ++ buildDeps;
buildInputs = buildDeps;
};

});
Expand Down
1 change: 1 addition & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ pub mod nll_todo {
/// return.
/// # Panics
/// Always panics.
#[allow(clippy::unnecessary_literal_unwrap)]
#[deprecated]
pub fn nll_todo<S>() -> S {
None.unwrap()
Expand Down

0 comments on commit 5d77973

Please sign in to comment.