removed unused code
This commit is contained in:
parent
45f2bb64b0
commit
3cfbc2a656
@ -2,24 +2,16 @@ use std::fmt;
|
|||||||
|
|
||||||
use regex::Regex;
|
use regex::Regex;
|
||||||
|
|
||||||
// use crate::common;
|
|
||||||
|
|
||||||
#[derive(Debug, PartialEq)]
|
#[derive(Debug, PartialEq)]
|
||||||
pub enum Error {
|
pub enum Error {
|
||||||
// Conversion,
|
|
||||||
// Empty,
|
|
||||||
NoTagFound,
|
NoTagFound,
|
||||||
// InvalidChar,
|
|
||||||
MisformedInput,
|
MisformedInput,
|
||||||
}
|
}
|
||||||
|
|
||||||
impl fmt::Display for Error {
|
impl fmt::Display for Error {
|
||||||
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
|
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
|
||||||
match self {
|
match self {
|
||||||
// Error::Conversion => write!(f, "Conversion error"),
|
|
||||||
// Error::Empty => write!(f, "Input is empty"),
|
|
||||||
Error::NoTagFound => write!(f, "Expected a tag"),
|
Error::NoTagFound => write!(f, "Expected a tag"),
|
||||||
// Error::InvalidChar => write!(f, "Invalid character found"),
|
|
||||||
Error::MisformedInput => write!(f, "Unexpected input"),
|
Error::MisformedInput => write!(f, "Unexpected input"),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -7,7 +7,6 @@ use serde::Deserialize;
|
|||||||
#[derive(Deserialize, Debug, Clone)]
|
#[derive(Deserialize, Debug, Clone)]
|
||||||
struct ImageDetails {
|
struct ImageDetails {
|
||||||
architecture: String,
|
architecture: String,
|
||||||
// os: String,
|
|
||||||
size: usize,
|
size: usize,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user