Skip to content

Commit

Permalink
reverted, I'm stupid
Browse files Browse the repository at this point in the history
  • Loading branch information
Baptistemontan committed Dec 19, 2024
1 parent 7f09408 commit ea3bfd0
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions leptos_i18n_parser/src/parse_locales/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -183,10 +183,7 @@ fn make_overlap<'a>(s1: &str, s2: &'a str) -> (&'a str, usize) {

impl StringIndexer {
pub fn push_str(&mut self, s: &str) -> (usize, usize) {
if let Some(start) = cfg!(not(debug_assertions))
.then(|| self.acc.find(s))
.flatten()
{
if let Some(start) = self.acc.find(s) {
(start, start + s.len())
} else {
let (to_push, start) = make_overlap(&self.acc, s);
Expand Down

0 comments on commit ea3bfd0

Please sign in to comment.