diff --git a/manifest/src/bin.rs b/manifest/src/bin.rs index a7af0e7..e30b528 100644 --- a/manifest/src/bin.rs +++ b/manifest/src/bin.rs @@ -5,5 +5,5 @@ use serde::{Deserialize, Serialize}; #[derive(Serialize, Deserialize)] pub struct Bin { pub root: String, - pub checksums: HashMap -} \ No newline at end of file + pub checksums: HashMap, +} diff --git a/manifest/src/build.rs b/manifest/src/build.rs index a727d49..ac223d2 100644 --- a/manifest/src/build.rs +++ b/manifest/src/build.rs @@ -6,5 +6,5 @@ use serde::{Deserialize, Serialize}; pub struct Build { build_script: String, install_script: String, - dependencies: HashMap -} \ No newline at end of file + dependencies: HashMap, +} diff --git a/manifest/src/lib.rs b/manifest/src/lib.rs index c894ec5..8a943fa 100644 --- a/manifest/src/lib.rs +++ b/manifest/src/lib.rs @@ -2,10 +2,10 @@ use std::{collections::HashMap, str::FromStr}; use serde::{Deserialize, Serialize}; -pub mod package; -pub mod fs; pub mod bin; pub mod build; +pub mod fs; +pub mod package; pub mod pkgr; #[derive(Serialize, Deserialize)] @@ -16,13 +16,13 @@ pub struct Manifest

> { pub fs: fs::FS, pub bin: Option, pub build: Option, - pub pkgr: P + pub pkgr: P, } impl Manifest { pub fn valid(&self) -> bool { if self.bin.is_none() && self.build.is_none() { - return false + return false; } true } @@ -43,7 +43,7 @@ impl Default for Manifest { fs: fs::FS::default(), bin: None, build: None, - pkgr: None + pkgr: None, } } } diff --git a/manifest/src/package.rs b/manifest/src/package.rs index 528aa29..017271d 100644 --- a/manifest/src/package.rs +++ b/manifest/src/package.rs @@ -9,7 +9,7 @@ pub enum PackageType { #[serde(rename = "library")] Library, #[serde(rename = "meta")] - Meta + Meta, } #[derive(Serialize, Deserialize, Debug)] @@ -20,7 +20,7 @@ pub struct Package { pub package_type: PackageType, pub version: u64, pub tags: Vec, - pub arch: String + pub arch: String, } impl Default for Package { @@ -31,7 +31,7 @@ impl Default for Package { package_type: PackageType::Application, version: 0, tags: Vec::default(), - arch: std::env::consts::ARCH.to_string() + arch: std::env::consts::ARCH.to_string(), } } } @@ -42,4 +42,4 @@ impl FromStr for Package { fn from_str(s: &str) -> Result { toml::from_str(s) } -} \ No newline at end of file +}