Skip to content

Commit

Permalink
no more trailing endlines
Browse files Browse the repository at this point in the history
  • Loading branch information
benjaminsavage committed Sep 19, 2024
1 parent 95384a1 commit 7fd93e1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 10 deletions.
5 changes: 1 addition & 4 deletions ipa-core/src/bin/report_collector.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ use ipa_core::{
net::MpcHelperClient,
report::{EncryptedOprfReportStreams, DEFAULT_KEY_ID},
test_fixture::{
hybrid::{hybrid_in_the_clear, TestHybridRecord},
ipa::{ipa_in_the_clear, CappingOrder, IpaSecurityModel, TestRawDataRecord},
EventGenerator, EventGeneratorConfig, HybridEventGenerator, HybridGeneratorConfig,
},
Expand Down Expand Up @@ -242,9 +241,7 @@ fn gen_hybrid_inputs(
let rng = seed
.map(StdRng::seed_from_u64)
.unwrap_or_else(StdRng::from_entropy);
let event_gen = HybridEventGenerator::with_config(rng, args)
.take(count as usize)
.collect::<Vec<_>>();
let event_gen = HybridEventGenerator::with_config(rng, args).take(count as usize);

let mut writer: Box<dyn Write> = if let Some(path) = output_file {
Box::new(OpenOptions::new().write(true).create_new(true).open(path)?)
Expand Down
8 changes: 2 additions & 6 deletions ipa-core/src/cli/csv.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,10 @@ impl Serializer for crate::test_fixture::hybrid::TestHybridRecord {
match_key,
breakdown_key,
} => {
write!(buf, "i,")?;
write!(buf, "{match_key},")?;
write!(buf, "{breakdown_key},")?;
write!(buf, "i,{match_key},{breakdown_key}")?;
}
crate::test_fixture::hybrid::TestHybridRecord::TestConversion { match_key, value } => {
write!(buf, "c,")?;
write!(buf, "{match_key},")?;
write!(buf, "{value}")?;
write!(buf, "c,{match_key},{value}")?;
}
}

Expand Down

0 comments on commit 7fd93e1

Please sign in to comment.