Skip to content

Commit

Permalink
fix: remove artifact rems
Browse files Browse the repository at this point in the history
  • Loading branch information
sargon64 committed Sep 11, 2023
1 parent b489afe commit 3a86188
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 10 deletions.
7 changes: 1 addition & 6 deletions src/structs/v1.rs
Original file line number Diff line number Diff line change
Expand Up @@ -219,14 +219,12 @@ impl ManifestBuilder<manifest::Mod> {
name: String,
mod_version: Version,
game_version: VersionReq,
artifact: PathBuf,
) -> Self {
Self {
kind: ManifestTypes::Mod,
_inner: manifest::Mod {
name,
version: mod_version,
artifact: Some(artifact),
game_version,
..Default::default()
},
Expand Down Expand Up @@ -258,14 +256,12 @@ impl ManifestBuilder<manifest::Lib> {
name: String,
lib_version: Version,
game_version: VersionReq,
artifact: PathBuf,
) -> Self {
Self {
kind: ManifestTypes::Lib,
_inner: manifest::Lib {
name,
version: lib_version,
artifact: Some(artifact),
game_version,
..Default::default()
},
Expand Down Expand Up @@ -327,12 +323,11 @@ impl ManifestBuilder<manifest::Parent> {
}

impl ManifestBuilder<manifest::Module> {
pub fn new_module(module_name: String, artifact: PathBuf) -> Self {
pub fn new_module(module_name: String) -> Self {
Self {
kind: ManifestTypes::Module,
_inner: manifest::Module {
name: module_name,
artifact: Some(artifact),
..Default::default()
},
}
Expand Down
4 changes: 0 additions & 4 deletions src/tests/v1.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ mod tests {
"pp".to_string(),
Version::new(0, 1, 2),
VersionReq::parse("=1.23.4").unwrap(),
"./test.dll".into(),
)
.build(),
vec![0xFF, 0xFF],
Expand All @@ -33,7 +32,6 @@ mod tests {
"pp".to_string(),
Version::new(0, 1, 2),
VersionReq::parse("=1.23.4").unwrap(),
"./test.dll".into(),
)
.build(),
vec![0xFF, 0xFF],
Expand All @@ -52,7 +50,6 @@ mod tests {
"pp".to_string(),
Version::new(0, 1, 2),
VersionReq::parse("=1.23.4").unwrap(),
"./test.dll".into(),
)
.build(),
vec![0xFF, 0xFF],
Expand Down Expand Up @@ -85,7 +82,6 @@ mod tests {
let mut _tmod = ModBuilder::new_module_raw(
ManifestBuilder::new_module(
"pp".to_string(),
"./test.dll".into(),
)
.build(),
vec![0xFF, 0xFF],
Expand Down

0 comments on commit 3a86188

Please sign in to comment.