Skip to content

Commit

Permalink
Rename with_split to split_generated_files, provide an bool param…
Browse files Browse the repository at this point in the history
…eter to it
  • Loading branch information
missingdays committed Sep 24, 2024
1 parent 42e6e05 commit 28656b4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions pilota-build/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -165,8 +165,8 @@ impl<MkB, P> Builder<MkB, P> {
self
}

pub fn with_split(mut self) -> Self {
self.split = true;
pub fn split_generated_files(mut self, split: bool) -> Self {
self.split = split;
self
}

Expand Down
2 changes: 1 addition & 1 deletion pilota-build/src/test/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ fn test_thrift_with_split(
test_with_split_builder(source, target, gen_dir, |source, target| {
crate::Builder::thrift()
.ignore_unused(false)
.with_split()
.split_generated_files(true)
.compile_with_config(
vec![IdlService::from_path(source.to_owned())],
crate::Output::File(target.into()),
Expand Down

0 comments on commit 28656b4

Please sign in to comment.