Radish alpha
h
Radicle Heartwood Protocol & Stack
Radicle
Git (anonymous pull)
Log in to clone via SSH
fix: Fix a couple of clippy errors
✓ CI success Richard Levitte committed 1 year ago
commit b4513438762da515243911cb974fea9dfdc5fe32
parent d9c76893a144fd787654613f2bfb919613014a71
1 passed (1 total) View logs
1 file changed +2 -0
modified radicle-cli/src/commands/patch/review/builder.rs
@@ -137,6 +137,7 @@ impl FromStr for ReviewAction {
/// A single review item. Can be a hunk or eg. a file move.
/// Files are usually split into multiple review items.
#[derive(Debug)]
+
#[allow(clippy::enum_variant_names)]
pub enum ReviewItem {
    FileAdded {
        path: PathBuf,
@@ -192,6 +193,7 @@ impl ReviewItem {
        self.hunk().and_then(|h| HunkHeader::try_from(h).ok())
    }

+
    #[allow(clippy::type_complexity)]
    fn paths(&self) -> (Option<(&Path, Oid)>, Option<(&Path, Oid)>) {
        match self {
            Self::FileAdded { path, new, .. } => (None, Some((path, new.oid))),