don't
5
fork

Configure Feed

Select the types of activity you want to include in your feed.

fix(knot): satiate the clippy monster

Signed-off-by: tjh <did:plc:65gha4t3avpfpzmvpbwovss7>

+8 -2
+8 -2
crates/knot/src/model/knot_state.rs
··· 347 347 use crate::services::rbac::{Action, Policy, PolicyResult, RepositoryPushPolicy}; 348 348 let policy = RepositoryPushPolicy; 349 349 let result = policy 350 - .evaluate_access(&did, &Action::RepositoryPush, &repo, self) 350 + .evaluate_access(&did, &Action::RepositoryPush, repo, self) 351 351 .await; 352 352 353 353 matches!(result, PolicyResult::Granted) ··· 413 413 #[error("Failed to lookup respository: {0}")] 414 414 Lookup(#[from] DataStoreError), 415 415 #[error("Failed to open repository: {0}")] 416 - Open(#[from] gix::open::Error), 416 + Open(Box<gix::open::Error>), 417 417 #[error("Repository not found")] 418 418 NotFound, 419 + } 420 + 421 + impl From<gix::open::Error> for RepositoryOpenError { 422 + fn from(value: gix::open::Error) -> Self { 423 + Self::Open(Box::new(value)) 424 + } 419 425 } 420 426 421 427 impl From<std::convert::Infallible> for RepositoryOpenError {