Skip to content

Commit da25c0b

Browse files
authored
Merge pull request #183 from Bromeon/feature/no-asserts
remove assert! statements in CompilerCommand
2 parents 10fb9ab + f8b9dd9 commit da25c0b

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

capnpc/src/lib.rs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -139,8 +139,6 @@ impl CompilerCommand {
139139
/// Adds the --no-standard-import flag, indicating that the default import paths of
140140
/// /usr/include and /usr/local/include should not bet included.
141141
pub fn no_standard_import(&mut self) -> &mut CompilerCommand {
142-
assert!(!self.no_standard_import, "no_standard_import() must only be called once");
143-
144142
self.no_standard_import = true;
145143
self
146144
}
@@ -150,8 +148,6 @@ impl CompilerCommand {
150148
where
151149
P: AsRef<Path>,
152150
{
153-
assert!(self.executable_path.is_none(), "output_path() must only be called once");
154-
155151
self.output_path = Some(path.as_ref().to_path_buf());
156152
self
157153
}
@@ -162,8 +158,6 @@ impl CompilerCommand {
162158
where
163159
P: AsRef<Path>
164160
{
165-
assert!(self.executable_path.is_none(), "capnp_executable() must only be called once");
166-
167161
self.executable_path = Some(path.as_ref().to_path_buf());
168162
self
169163
}

0 commit comments

Comments
 (0)