Skip to content

Commit

Permalink
Remove unused codes
Browse files Browse the repository at this point in the history
  • Loading branch information
EFanZh committed Jul 24, 2022
1 parent f3dd4f0 commit fce5f2f
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions src/mini_parser/input.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,3 @@ impl<'a> StripPrefix<char> for &'a str {
.map(|rest| (&self[..self.len() - rest.len()], rest))
}
}

impl<const N: usize> StripPrefix<[char; N]> for &str {
type Prefix = Self;

fn strip_prefix(self, prefix: [char; N]) -> Option<(Self::Prefix, Self)> {
self.strip_prefix(prefix)
.map(|rest| (&self[..self.len() - rest.len()], rest))
}
}

0 comments on commit fce5f2f

Please sign in to comment.