Skip to content

Commit

Permalink
Remove version check for i128 functions
Browse files Browse the repository at this point in the history
  • Loading branch information
nickelc authored and Geal committed Mar 14, 2022
1 parent 481cd2d commit eaddf7a
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 27 deletions.
4 changes: 0 additions & 4 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ include = [
"src/*/*.rs",
"tests/*.rs",
"doc/nom_recipes.md",
"build.rs"
]

[features]
Expand All @@ -47,9 +46,6 @@ default-features = false
doc-comment = "0.3"
proptest = "1.0.0"

[build-dependencies]
version_check = "0.9"

[package.metadata.docs.rs]
features = ["alloc", "std", "docsrs"]
all-features = true
Expand Down
7 changes: 0 additions & 7 deletions build.rs

This file was deleted.

8 changes: 0 additions & 8 deletions src/number/complete.rs
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,6 @@ where
/// assert_eq!(parser(&b"\x01"[..]), Err(Err::Error((&[0x01][..], ErrorKind::Eof))));
/// ```
#[inline]
#[cfg(stable_i128)]
pub fn be_u128<I, E: ParseError<I>>(input: I) -> IResult<I, u128, E>
where
I: Slice<RangeFrom<usize>> + InputIter<Item = u8> + InputLength,
Expand Down Expand Up @@ -365,7 +364,6 @@ where
/// assert_eq!(parser(&b"\x01"[..]), Err(Err::Error((&[0x01][..], ErrorKind::Eof))));
/// ```
#[inline]
#[cfg(stable_i128)]
pub fn be_i128<I, E: ParseError<I>>(input: I) -> IResult<I, i128, E>
where
I: Slice<RangeFrom<usize>> + InputIter<Item = u8> + InputLength,
Expand Down Expand Up @@ -551,7 +549,6 @@ where
/// assert_eq!(parser(&b"\x01"[..]), Err(Err::Error((&[0x01][..], ErrorKind::Eof))));
/// ```
#[inline]
#[cfg(stable_i128)]
pub fn le_u128<I, E: ParseError<I>>(input: I) -> IResult<I, u128, E>
where
I: Slice<RangeFrom<usize>> + InputIter<Item = u8> + InputLength,
Expand Down Expand Up @@ -705,7 +702,6 @@ where
/// assert_eq!(parser(&b"\x01"[..]), Err(Err::Error((&[0x01][..], ErrorKind::Eof))));
/// ```
#[inline]
#[cfg(stable_i128)]
pub fn le_i128<I, E: ParseError<I>>(input: I) -> IResult<I, i128, E>
where
I: Slice<RangeFrom<usize>> + InputIter<Item = u8> + InputLength,
Expand Down Expand Up @@ -926,7 +922,6 @@ where
/// assert_eq!(le_u128(&b"\x01"[..]), Err(Err::Error((&[0x01][..], ErrorKind::Eof))));
/// ```
#[inline]
#[cfg(stable_i128)]
pub fn u128<I, E: ParseError<I>>(endian: crate::number::Endianness) -> fn(I) -> IResult<I, u128, E>
where
I: Slice<RangeFrom<usize>> + InputIter<Item = u8> + InputLength,
Expand Down Expand Up @@ -1146,7 +1141,6 @@ where
/// assert_eq!(le_i128(&b"\x01"[..]), Err(Err::Error((&[0x01][..], ErrorKind::Eof))));
/// ```
#[inline]
#[cfg(stable_i128)]
pub fn i128<I, E: ParseError<I>>(endian: crate::number::Endianness) -> fn(I) -> IResult<I, i128, E>
where
I: Slice<RangeFrom<usize>> + InputIter<Item = u8> + InputLength,
Expand Down Expand Up @@ -1755,7 +1749,6 @@ mod tests {
}

#[test]
#[cfg(stable_i128)]
fn be_i128_tests() {
assert_parse!(
be_i128(
Expand Down Expand Up @@ -1872,7 +1865,6 @@ mod tests {
}

#[test]
#[cfg(stable_i128)]
fn le_i128_tests() {
assert_parse!(
le_i128(
Expand Down
8 changes: 0 additions & 8 deletions src/number/streaming.rs
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,6 @@ where
/// assert_eq!(parser(&b"\x01"[..]), Err(Err::Incomplete(Needed::new(15))));
/// ```
#[inline]
#[cfg(stable_i128)]
pub fn be_u128<I, E: ParseError<I>>(input: I) -> IResult<I, u128, E>
where
I: Slice<RangeFrom<usize>> + InputIter<Item = u8> + InputLength,
Expand Down Expand Up @@ -345,7 +344,6 @@ where
/// assert_eq!(parser(&b"\x01"[..]), Err(Err::Incomplete(Needed::new(15))));
/// ```
#[inline]
#[cfg(stable_i128)]
pub fn be_i128<I, E: ParseError<I>>(input: I) -> IResult<I, i128, E>
where
I: Slice<RangeFrom<usize>> + InputIter<Item = u8> + InputLength,
Expand Down Expand Up @@ -528,7 +526,6 @@ where
/// assert_eq!(parser(&b"\x01"[..]), Err(Err::Incomplete(Needed::new(15))));
/// ```
#[inline]
#[cfg(stable_i128)]
pub fn le_u128<I, E: ParseError<I>>(input: I) -> IResult<I, u128, E>
where
I: Slice<RangeFrom<usize>> + InputIter<Item = u8> + InputLength,
Expand Down Expand Up @@ -679,7 +676,6 @@ where
/// assert_eq!(parser(&b"\x01"[..]), Err(Err::Incomplete(Needed::new(15))));
/// ```
#[inline]
#[cfg(stable_i128)]
pub fn le_i128<I, E: ParseError<I>>(input: I) -> IResult<I, i128, E>
where
I: Slice<RangeFrom<usize>> + InputIter<Item = u8> + InputLength,
Expand Down Expand Up @@ -900,7 +896,6 @@ where
/// assert_eq!(le_u128(&b"\x01"[..]), Err(Err::Incomplete(Needed::new(15))));
/// ```
#[inline]
#[cfg(stable_i128)]
pub fn u128<I, E: ParseError<I>>(endian: crate::number::Endianness) -> fn(I) -> IResult<I, u128, E>
where
I: Slice<RangeFrom<usize>> + InputIter<Item = u8> + InputLength,
Expand Down Expand Up @@ -1120,7 +1115,6 @@ where
/// assert_eq!(le_i128(&b"\x01"[..]), Err(Err::Incomplete(Needed::new(15))));
/// ```
#[inline]
#[cfg(stable_i128)]
pub fn i128<I, E: ParseError<I>>(endian: crate::number::Endianness) -> fn(I) -> IResult<I, i128, E>
where
I: Slice<RangeFrom<usize>> + InputIter<Item = u8> + InputLength,
Expand Down Expand Up @@ -1771,7 +1765,6 @@ mod tests {
}

#[test]
#[cfg(stable_i128)]
fn i128_tests() {
assert_parse!(
be_i128(
Expand Down Expand Up @@ -1951,7 +1944,6 @@ mod tests {
}

#[test]
#[cfg(stable_i128)]
fn le_i128_tests() {
assert_parse!(
le_i128(
Expand Down

0 comments on commit eaddf7a

Please sign in to comment.