Skip to content

Commit bbed60f

Browse files
committed
Add a boolean argument to no_build_target()
Instead of always setting it to true.
1 parent a54fc29 commit bbed60f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -170,8 +170,8 @@ impl Config {
170170
}
171171

172172
/// Disables the target option for this compilation.
173-
pub fn no_build_target(&mut self) -> &mut Config {
174-
self.no_build_target = true;
173+
pub fn no_build_target(&mut self, no_build_target: bool) -> &mut Config {
174+
self.no_build_target = no_build_target;
175175
self
176176
}
177177

0 commit comments

Comments
 (0)