Remove obsolete struct (fix #812)

This commit is contained in:
Roey Darwish Dror
2021-12-18 20:14:00 +02:00
parent 0a7d576b59
commit 2c7dfb66c5

View File

@@ -8,19 +8,11 @@ use crate::Step;
use anyhow::Result; use anyhow::Result;
use ini::Ini; use ini::Ini;
use log::{debug, warn}; use log::{debug, warn};
use serde::Deserialize;
use std::path::{Path, PathBuf}; use std::path::{Path, PathBuf};
use std::process::Command; use std::process::Command;
static OS_RELEASE_PATH: &str = "/etc/os-release"; static OS_RELEASE_PATH: &str = "/etc/os-release";
#[derive(Debug, Deserialize)]
#[serde(rename_all = "UPPERCASE")]
struct OsRelease {
id_like: Option<String>,
id: String,
}
#[allow(clippy::upper_case_acronyms)] #[allow(clippy::upper_case_acronyms)]
#[derive(Copy, Clone, Debug, PartialEq, Eq)] #[derive(Copy, Clone, Debug, PartialEq, Eq)]
pub enum Distribution { pub enum Distribution {