Skip to content

Commit 9ab410b

Browse files
committed
Making build call homogeneous
1 parent c3f0d22 commit 9ab410b

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/model/delay_per_packet.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -480,7 +480,7 @@ impl StaticDelayPerPacketConfig {
480480
self
481481
}
482482

483-
pub fn build(&self) -> StaticDelayPerPacket {
483+
pub fn build(self) -> StaticDelayPerPacket {
484484
StaticDelayPerPacket {
485485
delay: self.delay.unwrap_or_else(|| Delay::from_millis(10)),
486486
count: self.count,
@@ -565,7 +565,7 @@ impl NormalizedDelayPerPacketConfig {
565565
self
566566
}
567567

568-
pub fn build(&self) -> NormalizedDelayPerPacket {
568+
pub fn build(self) -> NormalizedDelayPerPacket {
569569
let mean = self.mean.unwrap_or_else(|| Delay::from_millis(10));
570570
let std_dev = self.std_dev.unwrap_or(Delay::ZERO);
571571
let upper_bound = self.upper_bound;
@@ -698,7 +698,7 @@ impl LogNormalizedDelayPerPacketConfig {
698698
self
699699
}
700700

701-
pub fn build(&self) -> LogNormalizedDelayPerPacket {
701+
pub fn build(self) -> LogNormalizedDelayPerPacket {
702702
let mean = self.mean.unwrap_or_else(|| Delay::from_millis(10));
703703
let std_dev = self.std_dev.unwrap_or(Delay::ZERO);
704704
let upper_bound = self.upper_bound;

0 commit comments

Comments
 (0)