Skip to content

Commit

Permalink
clippy lint
Browse files Browse the repository at this point in the history
  • Loading branch information
Zabot committed Sep 3, 2023
1 parent ac68468 commit 52ee8ef
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
5 changes: 4 additions & 1 deletion flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@
rustPkgs = pkgs.rustBuilder.makePackageSet {
rustVersion = "1.70.0";
packageFun = import ./Cargo.nix;
extraRustComponents = [
"clippy"
"rustfmt"
];
};
in
{
Expand All @@ -26,7 +30,6 @@
devShells."x86_64-linux".default = (rustPkgs.workspaceShell {
nativeBuildInputs = [
cargo2nix.packages.x86_64-linux.default
pkgs.rustfmt
pkgs.go-containerregistry

# Native dependencies for git2
Expand Down
2 changes: 1 addition & 1 deletion src/push.rs
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ impl Pusher {
let mut callbacks = RemoteCallbacks::default();
callbacks
.sideband_progress(|message| {
tracing::trace!(message = ?std::str::from_utf8(&message), "sideband progress");
tracing::trace!(message = ?std::str::from_utf8(message), "sideband progress");
true
})
.update_tips(|branch, old, new| {
Expand Down
2 changes: 1 addition & 1 deletion src/update.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ impl CommitUpdater {
"fel stacks cannot contain merge commits"
);

let metadata = Metadata::new(&repo, commit.id())?;
let metadata = Metadata::new(repo, commit.id())?;
let (branch, force) = match &metadata.branch {
Some(branch) => (branch.clone(), true),
None => (format!("fel/{}/{}", self.branch_name, index), false),
Expand Down

0 comments on commit 52ee8ef

Please sign in to comment.