Skip to content

Commit b8fc4eb

Browse files
committed
Appeased clippy
1 parent d93e12a commit b8fc4eb

File tree

7 files changed

+6
-10
lines changed

7 files changed

+6
-10
lines changed

README2.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ you may need. It also has `no_std` support, making it suitable for embedded envi
2929
- 🏷️ **Pattern labelling** for dynamic, user-friendly error messages
3030
- 🗃️ **Caching** allows parsers to be created once and reused many times
3131
- ↔️ **Pratt parsing** support for unary and binary operators
32+
- 🪛 **no_std** support, allowing chumsky to run in embedded environments
3233

3334
*Note: Error diagnostic rendering is performed by [Ariadne](https://github.com/zesterer/ariadne)*
3435

benches/json.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -463,6 +463,7 @@ mod winnow {
463463
}
464464
}
465465

466+
#[allow(clippy::empty_docs)] // TODO: Remove, pest does things clippy doesn't like for some reason
466467
mod pest {
467468
use super::JsonZero;
468469

src/combinator.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1427,6 +1427,7 @@ where
14271427
A: Parser<'a, I, OA, E>,
14281428
{
14291429
#[inline(always)]
1430+
#[allow(clippy::nonminimal_bool)] // TODO: Remove this, lint is currently buggy
14301431
fn go<M: Mode>(&self, inp: &mut InputRef<'a, '_, I, E>) -> PResult<M, ()> {
14311432
if self.at_most == !0 && self.at_least == 0 {
14321433
loop {

src/error.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
//! like [`Cheap`], [`Simple`] or [`Rich`].
88
99
use super::*;
10+
#[cfg(not(feature = "std"))]
1011
use alloc::string::ToString;
1112

1213
/// A trait that describes parser error types.

src/input.rs

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,8 @@
88
pub use crate::stream::{BoxedExactSizeStream, BoxedStream, Stream};
99

1010
use super::*;
11-
#[cfg(feature = "memoization")]
12-
use hashbrown::HashMap;
1311
#[cfg(feature = "std")]
14-
use std::{
15-
cell::RefCell,
16-
io::{BufReader, Read, Seek},
17-
};
12+
use std::io::{BufReader, Read, Seek};
1813

1914
/// A trait for types that represents a stream of input tokens. Unlike [`Iterator`], this type
2015
/// supports backtracking and a few other features required by the crate.

src/stream.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
use super::*;
22

3-
use core::cell::Cell;
4-
53
/// An input that dynamically pulls tokens from an [`Iterator`].
64
///
75
/// Internally, the stream will pull tokens in batches so as to avoid invoking the iterator every time a new token is

src/util.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,7 @@
33
use super::*;
44

55
use core::{
6-
cmp::{Ord, PartialEq, PartialOrd},
7-
hash::{Hash, Hasher},
6+
hash::Hasher,
87
ops::{Deref, DerefMut},
98
};
109

0 commit comments

Comments
 (0)