corretto 0.1.0

Library for installing and finding info about Corretto OpenJDK.
Documentation
use std::fmt::Display;

/// A file extension.
#[non_exhaustive]
pub enum Ext {
    /// Debian package.
    Deb,
    /// Red Hat package.
    Rpm,
    /// Gzipped Tarball.
    TarGz,
    /// Microsoft Installer.
    Msi,
    /// macOS package.
    Pkg,
    /// Zip archive.
    Zip,
}

impl Display for Ext {
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        match self {
            Ext::Deb => write!(f, "deb"),
            Ext::Rpm => write!(f, "rpm"),
            Ext::TarGz => write!(f, "tar.gz"),
            Ext::Msi => write!(f, "msi"),
            Ext::Pkg => write!(f, "pkg"),
            Ext::Zip => write!(f, "zip"),
        }
    }
}