@@ -22,7 +22,7 @@ pub use node_name::{NodeName, NodeNameFragment};
22
22
pub use node_value:: { InvalidBlock , NodeBlock } ;
23
23
24
24
pub use self :: raw_text:: RawText ;
25
- use crate :: recoverable:: { RecoverableContext , ParseRecoverable } ;
25
+ use crate :: recoverable:: { ParseRecoverable , RecoverableContext } ;
26
26
27
27
/// Node types.
28
28
#[ derive( Debug , Clone , PartialEq , Eq ) ]
@@ -264,14 +264,13 @@ pub trait CustomNode: ParseRecoverable + ToTokens {
264
264
/// Recieves a [`ParseStream::fork`].
265
265
///
266
266
/// [`ParseStream::fork`]: syn::parse::ParseBuffer::fork
267
- ///
268
267
fn peek_element ( input : ParseStream ) -> bool ;
269
268
}
270
269
271
270
/// Newtype for `std::convert::Infallible` used to implement
272
271
/// `ToTokens`` for `Infallible``.
273
272
#[ derive( Clone , Copy , Debug , Eq , PartialEq ) ]
274
- pub struct Infallible ( convert:: Infallible ) ;
273
+ pub struct Infallible ( convert:: Infallible ) ;
275
274
276
275
impl From < convert:: Infallible > for Infallible {
277
276
fn from ( s : convert:: Infallible ) -> Self {
@@ -289,7 +288,7 @@ impl ParseRecoverable for Infallible {
289
288
}
290
289
}
291
290
impl CustomNode for Infallible {
292
- fn peek_element ( _: ParseStream ) -> bool {
291
+ fn peek_element ( _: ParseStream ) -> bool {
293
292
false
294
293
}
295
- }
294
+ }
0 commit comments