Skip to content

Commit

Permalink
chore: Prevent using range and limit together
Browse files Browse the repository at this point in the history
  • Loading branch information
dariusc93 committed Oct 4, 2023
1 parent a3d20ae commit f19868b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions warp/src/raygun/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -201,11 +201,13 @@ impl MessageOptions {

pub fn set_range(mut self, range: Range<usize>) -> MessageOptions {
self.range = Some(range);
self.limit = None;
self
}

pub fn set_limit(mut self, limit: i64) -> MessageOptions {
self.limit = Some(limit);
self.range = None;
self
}

Expand Down

0 comments on commit f19868b

Please sign in to comment.