fix: do it correctly

This commit is contained in:
Miles Murgaw committed 2023-07-14 20:41:27 -04:00
1 parent 41fd7a1040
commit d710b92696
7 files changed
+28 -21

No files matched your search

+2 -2
View File
@@ -12,8 +12,8 @@ pub struct Build {
}
impl Build {
pub fn build(self) -> Result<()> {
let mut crate_config = crate::CrateConfig::new(self.build.bin)?;
pub fn build(self, bin: Option<PathBuf>) -> Result<()> {
let mut crate_config = crate::CrateConfig::new(bin)?;
// change the release state.
crate_config.with_release(self.build.release);