Skip to content

Commit

Permalink
Fixed broken tests
Browse files Browse the repository at this point in the history
  • Loading branch information
zesterer committed Jan 1, 2025
1 parent b3b4f56 commit af507f6
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1925,7 +1925,7 @@ pub trait Parser<'src, I: Input<'src>, O, E: ParserExtra<'src, I> = extra::Defau
/// multi_step_val.parse("100 2").into_result(),
/// Err(vec![
/// Rich::<char>::custom((0..3).into(), "100 must be 256 or higher"),
/// <Rich<char> as LabelError<&str, _>>::expected_found([TextExpected::<char>::IdentifierPart], Some(MaybeRef::Val('2')), (4..5).into()),
/// <Rich<char> as LabelError<&str, _>>::expected_found([TextExpected::<&str>::IdentifierPart], Some(MaybeRef::Val('2')), (4..5).into()),
/// ])
/// );
///
Expand Down
2 changes: 1 addition & 1 deletion src/stream.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ impl<I: Iterator> Stream<I> {
/// # use chumsky::{prelude::*, input::Stream};
/// let stream = Stream::from_iter((0..10).map(|i| char::from_digit(i, 10).unwrap()));
///
/// let parser = text::digits::<_, extra::Err<Simple<_>>>(10).collect::<String>();
/// let parser = any::<_, extra::Err<Simple<_>>>().filter(|c: &char| c.is_ascii_digit()).repeated().collect::<String>();
///
/// assert_eq!(parser.parse(stream).into_result().as_deref(), Ok("0123456789"));
/// ```
Expand Down
2 changes: 0 additions & 2 deletions src/text.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@ use alloc::string::ToString;

use super::*;

use alloc::string::ToString;

/// A trait implemented by textual character types (currently, [`u8`] and [`char`]).
///
/// This trait is currently sealed to minimize the impact of breaking changes. If you find a type that you think should
Expand Down

0 comments on commit af507f6

Please sign in to comment.