fix: do it correctly
This commit is contained in:
1 parent
41fd7a1040
commit
d710b92696
7 files changed
+28
-21
No files matched your search
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user