Skip to content
This repository has been archived by the owner on Jun 20, 2024. It is now read-only.

Commit

Permalink
Merge branch 'feat/block-interval' into zbrown/concurrent-block-proof
Browse files Browse the repository at this point in the history
  • Loading branch information
cpubot authored Jun 5, 2024
2 parents b5d7191 + c090919 commit 5feec6a
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions common/src/parsing.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,7 @@ where
/// # use common::parsing::parse_range_exclusive;
/// assert_eq!(parse_range_exclusive::<usize>("0..10"), Ok(0..10));
/// ```
pub(crate) fn parse_range_exclusive<NumberT>(
s: &str,
) -> Result<Range<NumberT>, RangeParseError<NumberT>>
pub fn parse_range_exclusive<NumberT>(s: &str) -> Result<Range<NumberT>, RangeParseError<NumberT>>
where
NumberT: Display + FromStr + From<u8> + Add<Output = NumberT>,
NumberT::Err: Display,
Expand All @@ -51,9 +49,7 @@ where
/// # use common::parsing::parse_range_inclusive;
/// assert_eq!(parse_range_inclusive::<usize>("0..=10"), Ok(0..11));
/// ```
pub(crate) fn parse_range_inclusive<NumberT>(
s: &str,
) -> Result<Range<NumberT>, RangeParseError<NumberT>>
pub fn parse_range_inclusive<NumberT>(s: &str) -> Result<Range<NumberT>, RangeParseError<NumberT>>
where
NumberT: Display + FromStr + From<u8> + Add<Output = NumberT>,
NumberT::Err: Display,
Expand Down

0 comments on commit 5feec6a

Please sign in to comment.