mirror of
https://github.com/msfjarvis/gitice
synced 2025-08-14 10:37:01 +05:30
fix(rust): switch to stable
This commit is contained in:
parent
88418f7c46
commit
5c40422e41
4 changed files with 22 additions and 21 deletions
|
@ -42,7 +42,7 @@
|
|||
|
||||
rustNightly = (import fenix { inherit pkgs; }).fromToolchainFile {
|
||||
file = ./rust-toolchain.toml;
|
||||
sha256 = "sha256-XPGNBesOSwZJCXgynlavqa5QdsTAnodTmbx6t6XUWsY=";
|
||||
sha256 = "sha256-AJ6LX/Q/Er9kS15bn9iflkUwcgYqRQxiOIL2ToVAXaU=";
|
||||
};
|
||||
|
||||
craneLib = (crane.mkLib pkgs).overrideToolchain rustNightly;
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
[toolchain]
|
||||
channel = "nightly-2024-12-15"
|
||||
channel = "1.85.0"
|
||||
components = ["clippy", "rustfmt", "rust-src"]
|
||||
targets = ["x86_64-unknown-linux-gnu"]
|
||||
profile = "minimal"
|
||||
|
|
10
src/git.rs
10
src/git.rs
|
@ -57,9 +57,12 @@ pub fn freeze_repos(dir: &str) -> anyhow::Result<()> {
|
|||
let repository = shared_repo.to_thread_local();
|
||||
let branch = get_current_branch(&repository);
|
||||
let remote = get_remote_for_branch(&repository, branch.as_deref());
|
||||
if let Some(branch) = branch
|
||||
&& let Some(remote) = remote
|
||||
{
|
||||
let Some(branch) = branch else {
|
||||
continue;
|
||||
};
|
||||
let Some(remote) = remote else {
|
||||
continue;
|
||||
};
|
||||
let remote_url = get_url(&repository, &remote);
|
||||
let relative_path = entry
|
||||
.path()
|
||||
|
@ -77,7 +80,6 @@ pub fn freeze_repos(dir: &str) -> anyhow::Result<()> {
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
fs::write("gitice.lock", toml::to_string(&repos)?).context("could not write to lockfile!")?;
|
||||
tracing::info!(
|
||||
"Successfully generated lockfile with {} repos",
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
#![feature(let_chains)]
|
||||
#![allow(clippy::missing_errors_doc, clippy::missing_panics_doc)]
|
||||
pub mod cli;
|
||||
pub mod git;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue