Radish alpha
r
rad:z4V1sjrXqjvFdnCUbxPFqd5p4DtH5
Radicle web interface
Radicle
Git
Update used rust toolchain to 1.87
Sebastian Martinez committed 11 months ago
commit 9561049789104221cdfada352cb18c1033512c2f
parent c6f0a7a
4 files changed +9 -5
modified .github/workflows/check-radicle-httpd.yml
@@ -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
modified radicle-httpd/rust-toolchain
@@ -1 +1 @@
-
1.83

\ No newline at end of file
+
1.87
modified radicle-httpd/src/api.rs
@@ -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()?;
modified radicle-httpd/src/lib.rs
@@ -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 {