Skip to content

Commit

Permalink
fix nostd imports
Browse files Browse the repository at this point in the history
  • Loading branch information
Geal committed Oct 21, 2023
1 parent 1fe2f16 commit 95435e8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/multi/tests.rs
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
use std::ops::Range;
use super::{length_data, length_value, many0_count, many1_count};
use crate::{
bytes::streaming::tag,
character::streaming::digit1 as digit,
error::{ErrorKind, ParseError},
internal::{Err, IResult, Needed},
lib::std::ops::Range,

Check warning on line 7 in src/multi/tests.rs

View workflow job for this annotation

GitHub Actions / Test (nightly, --no-default-features)

unused import: `lib::std::ops::Range`

Check warning on line 7 in src/multi/tests.rs

View workflow job for this annotation

GitHub Actions / Test (stable, --no-default-features)

unused import: `lib::std::ops::Range`

Check warning on line 7 in src/multi/tests.rs

View workflow job for this annotation

GitHub Actions / Test (nightly, --no-default-features)

unused import: `lib::std::ops::Range`

Check warning on line 7 in src/multi/tests.rs

View workflow job for this annotation

GitHub Actions / Test (stable, --no-default-features)

unused import: `lib::std::ops::Range`
lib::std::str::{self, FromStr},
number::streaming::{be_u16, be_u8},
sequence::pair,
Expand Down
1 change: 1 addition & 0 deletions src/number/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1388,6 +1388,7 @@ mod tests {
use crate::error::ErrorKind;

Check warning on line 1388 in src/number/mod.rs

View workflow job for this annotation

GitHub Actions / Test (nightly, --no-default-features --features "alloc")

unused import: `crate::error::ErrorKind`

Check warning on line 1388 in src/number/mod.rs

View workflow job for this annotation

GitHub Actions / Test (nightly, --no-default-features)

unused import: `crate::error::ErrorKind`

Check warning on line 1388 in src/number/mod.rs

View workflow job for this annotation

GitHub Actions / Test (stable, --no-default-features)

unused import: `crate::error::ErrorKind`

Check warning on line 1388 in src/number/mod.rs

View workflow job for this annotation

GitHub Actions / Test (stable, --no-default-features --features "alloc")

unused import: `crate::error::ErrorKind`

Check warning on line 1388 in src/number/mod.rs

View workflow job for this annotation

GitHub Actions / Test (nightly, --no-default-features --features "alloc")

unused import: `crate::error::ErrorKind`

Check warning on line 1388 in src/number/mod.rs

View workflow job for this annotation

GitHub Actions / Test (nightly, --no-default-features)

unused import: `crate::error::ErrorKind`

Check warning on line 1388 in src/number/mod.rs

View workflow job for this annotation

GitHub Actions / Test (stable, --no-default-features --features "alloc")

unused import: `crate::error::ErrorKind`

Check warning on line 1388 in src/number/mod.rs

View workflow job for this annotation

GitHub Actions / Test (stable, --no-default-features)

unused import: `crate::error::ErrorKind`
use crate::internal::Err;

Check warning on line 1389 in src/number/mod.rs

View workflow job for this annotation

GitHub Actions / Test (nightly, --no-default-features --features "alloc")

unused import: `crate::internal::Err`

Check warning on line 1389 in src/number/mod.rs

View workflow job for this annotation

GitHub Actions / Test (nightly, --no-default-features)

unused import: `crate::internal::Err`

Check warning on line 1389 in src/number/mod.rs

View workflow job for this annotation

GitHub Actions / Test (stable, --no-default-features)

unused import: `crate::internal::Err`

Check warning on line 1389 in src/number/mod.rs

View workflow job for this annotation

GitHub Actions / Test (stable, --no-default-features --features "alloc")

unused import: `crate::internal::Err`

Check warning on line 1389 in src/number/mod.rs

View workflow job for this annotation

GitHub Actions / Test (nightly, --no-default-features --features "alloc")

unused import: `crate::internal::Err`

Check warning on line 1389 in src/number/mod.rs

View workflow job for this annotation

GitHub Actions / Test (nightly, --no-default-features)

unused import: `crate::internal::Err`

Check warning on line 1389 in src/number/mod.rs

View workflow job for this annotation

GitHub Actions / Test (stable, --no-default-features --features "alloc")

unused import: `crate::internal::Err`

Check warning on line 1389 in src/number/mod.rs

View workflow job for this annotation

GitHub Actions / Test (stable, --no-default-features)

unused import: `crate::internal::Err`

#[cfg(feature = "std")]
macro_rules! assert_parse(
($left: expr, $right: expr) => {
let res: $crate::IResult<_, _, (_, ErrorKind)> = $left;
Expand Down

0 comments on commit 95435e8

Please sign in to comment.