mirror of
https://seed.radicle.dev/rad:z4V1sjrXqjvFdnCUbxPFqd5p4DtH5.git
synced 2026-10-18 19:30:27 +08:00
Update used rust toolchain to 1.87
This commit is contained in:
@@ -12,7 +12,7 @@ jobs:
|
||||
working-directory: ./radicle-httpd
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: dtolnay/rust-toolchain@stable
|
||||
- uses: dtolnay/rust-toolchain@1.87
|
||||
- uses: Swatinem/rust-cache@v2
|
||||
with:
|
||||
workspaces: radicle-httpd -> target
|
||||
@@ -30,7 +30,7 @@ jobs:
|
||||
working-directory: ./radicle-httpd
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: dtolnay/rust-toolchain@stable
|
||||
- uses: dtolnay/rust-toolchain@1.87
|
||||
- uses: Swatinem/rust-cache@v2
|
||||
with:
|
||||
workspaces: radicle-httpd -> target
|
||||
@@ -46,7 +46,9 @@ jobs:
|
||||
working-directory: ./radicle-httpd
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: dtolnay/rust-toolchain@stable
|
||||
- uses: dtolnay/rust-toolchain@1.87
|
||||
with:
|
||||
components: rustfmt, clippy
|
||||
- uses: Swatinem/rust-cache@v2
|
||||
with:
|
||||
workspaces: radicle-httpd -> target
|
||||
|
||||
@@ -1 +1 @@
|
||||
1.83
|
||||
1.87
|
||||
|
||||
@@ -42,6 +42,7 @@ impl Context {
|
||||
}
|
||||
}
|
||||
|
||||
#[allow(clippy::result_large_err)]
|
||||
pub fn repo_info<R: ReadRepository + radicle::cob::Store>(
|
||||
&self,
|
||||
repo: &R,
|
||||
@@ -98,6 +99,7 @@ impl Context {
|
||||
}
|
||||
|
||||
/// Get a repository by RID, checking to make sure we're allowed to view it.
|
||||
#[allow(clippy::result_large_err)]
|
||||
pub fn repo(&self, rid: RepoId) -> Result<(Repository, DocAt), error::Error> {
|
||||
let repo = self.profile.storage.repository(rid)?;
|
||||
let doc = repo.identity_doc()?;
|
||||
|
||||
@@ -42,7 +42,7 @@ mod test;
|
||||
mod tracing_extra;
|
||||
|
||||
/// Default cache HTTP size.
|
||||
pub const DEFAULT_CACHE_SIZE: NonZeroUsize = unsafe { NonZeroUsize::new_unchecked(100) };
|
||||
pub const DEFAULT_CACHE_SIZE: NonZeroUsize = NonZeroUsize::new(100).unwrap();
|
||||
|
||||
#[derive(Debug, Clone)]
|
||||
pub struct Options {
|
||||
|
||||
Reference in New Issue
Block a user