From 3cfbc2a6561cd8e5bdeed7c495a15e6569593987 Mon Sep 17 00:00:00 2001 From: Thomas Eppers Date: Wed, 27 Oct 2021 13:40:41 +0200 Subject: [PATCH] removed unused code --- src/repo.rs | 8 -------- src/tags.rs | 1 - 2 files changed, 9 deletions(-) diff --git a/src/repo.rs b/src/repo.rs index ab96332..5ff504d 100644 --- a/src/repo.rs +++ b/src/repo.rs @@ -2,24 +2,16 @@ use std::fmt; use regex::Regex; -// use crate::common; - #[derive(Debug, PartialEq)] pub enum Error { - // Conversion, - // Empty, NoTagFound, - // InvalidChar, MisformedInput, } impl fmt::Display for Error { fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { match self { - // Error::Conversion => write!(f, "Conversion error"), - // Error::Empty => write!(f, "Input is empty"), Error::NoTagFound => write!(f, "Expected a tag"), - // Error::InvalidChar => write!(f, "Invalid character found"), Error::MisformedInput => write!(f, "Unexpected input"), } } diff --git a/src/tags.rs b/src/tags.rs index 39e9b4c..f872dc3 100644 --- a/src/tags.rs +++ b/src/tags.rs @@ -7,7 +7,6 @@ use serde::Deserialize; #[derive(Deserialize, Debug, Clone)] struct ImageDetails { architecture: String, - // os: String, size: usize, }