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() }