From 391078e2c3dfe9cb7684b11835cd69237dc90516 Mon Sep 17 00:00:00 2001 From: Harsh Shandilya Date: Sat, 25 May 2024 01:19:43 +0530 Subject: [PATCH] feat(rust): upgrade to 2024-05-24 nightly --- flake.nix | 2 +- rust-toolchain.toml | 2 +- src/git.rs | 5 +---- 3 files changed, 3 insertions(+), 6 deletions(-) diff --git a/flake.nix b/flake.nix index dc20931..a32bbdd 100644 --- a/flake.nix +++ b/flake.nix @@ -41,7 +41,7 @@ rustNightly = (import fenix {inherit pkgs;}).fromToolchainFile { file = ./rust-toolchain.toml; - sha256 = "sha256-Je+rS6Tgc04HqvDj2XvjOpbyIAcEee0JqqrG7+cUydI="; + sha256 = "sha256-Fo3VT4BvAUzTBjRNZQJGy7X5/X+CL0KzNPjmozMl93A="; }; craneLib = (crane.mkLib pkgs).overrideToolchain rustNightly; diff --git a/rust-toolchain.toml b/rust-toolchain.toml index 8e24b68..343daf7 100644 --- a/rust-toolchain.toml +++ b/rust-toolchain.toml @@ -1,5 +1,5 @@ [toolchain] -channel = "nightly-2024-01-09" +channel = "nightly-2024-05-24" components = ["clippy", "rustfmt", "rust-src"] targets = ["x86_64-unknown-linux-gnu"] profile = "minimal" diff --git a/src/git.rs b/src/git.rs index 7f57d87..9fb7cd4 100644 --- a/src/git.rs +++ b/src/git.rs @@ -144,8 +144,5 @@ fn get_url(repo: &Repository, remote_name: &str) -> String { } } - match remote_url { - Some(url) => url, - None => String::default(), - } + remote_url.unwrap_or_default() }