Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion examples/group/src/main.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#![feature(proc_macro_hygiene)]
#![warn(rust_2018_idioms)]

use pear::macros::{parser, switch, parse};
Expand Down
1 change: 0 additions & 1 deletion examples/ini/src/main.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#![feature(proc_macro_hygiene)]
#![warn(rust_2018_idioms)]

use std::fmt;
Expand Down
1 change: 0 additions & 1 deletion examples/json/src/main.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#![feature(proc_macro_hygiene)]
#![warn(rust_2018_idioms)]

use std::collections::HashMap;
Expand Down
1 change: 0 additions & 1 deletion examples/parens/src/main.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#![feature(proc_macro_hygiene)]
#![warn(rust_2018_idioms)]

use pear::input::{Text, Result};
Expand Down
2 changes: 0 additions & 2 deletions lib/src/input/string.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
pub use crate::input::{Input, Token, Slice, ParserInfo};

impl<'a, 'b: 'a> Slice<&'a str> for &'b str { }

// ident_impl_token!(&str);

impl<'a> Input for &'a str {
Expand Down
2 changes: 0 additions & 2 deletions lib/src/input/text.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,6 @@ impl<'a> From<&'a str> for Text<'a> {
}
}

impl<'a, 'b> Slice<Text<'a>> for &'b str { }

// ident_impl_token!(Text<'_>);

impl Rewind for Text<'_> {
Expand Down
3 changes: 0 additions & 3 deletions lib/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
#![feature(proc_macro_hygiene)]
#![feature(specialization)]

#![warn(rust_2018_idioms)]

#[macro_use] pub mod macros;
Expand Down
6 changes: 3 additions & 3 deletions lib/tests/parsers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ fn take_until_str<'a>(input: &mut Text<'a>, s: &str) -> Result<'a, &'a str> {
}

#[parser]
fn test_until<'a>(input: &mut Text<'a>, s: &str, r: &str) -> Result<'a, &'a str> {
fn test_until<'a>(input: &mut Text<'a>, s: &str, r: &'a str) -> Result<'a, &'a str> {
(take_until_str(s)?, eat_slice(r)?).0
}

Expand Down Expand Up @@ -43,7 +43,7 @@ fn take_until_and_str<'a>(input: &mut Text<'a>, s: &str) -> Result<'a, &'a str>
}

#[parser]
fn test_until_and<'a>(input: &mut Text<'a>, s: &str, r: &str) -> Result<'a, &'a str> {
fn test_until_and<'a>(input: &mut Text<'a>, s: &'a str, r: &'a str) -> Result<'a, &'a str> {
(take_until_and_str(s)?, eat_slice(r)?).0
}

Expand All @@ -69,7 +69,7 @@ fn test_while_slice_and() {
}

#[parser]
fn test_until_window<'a>(input: &mut Text<'a>, s: &str, r: &str) -> Result<'a, &'a str> {
fn test_until_window<'a>(input: &mut Text<'a>, s: &'a str, r: &'a str) -> Result<'a, &'a str> {
(take_until_slice(s)?, eat_slice(r)?).0
}

Expand Down