summaryrefslogtreecommitdiff
path: root/src/bindings.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/bindings.rs')
-rw-r--r--src/bindings.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/bindings.rs b/src/bindings.rs
index 5db63c9..b596c84 100644
--- a/src/bindings.rs
+++ b/src/bindings.rs
@@ -9,7 +9,7 @@ use serde::{Deserialize, Serialize};
use serde_aux::prelude::*;
use std::collections::HashMap;
-use std::fmt::Debug;
+use std::fmt::{Debug, Write};
use std::ops::Deref;
use std::path::Path;
use std::str::FromStr;
@@ -853,7 +853,7 @@ fn regex_from_simple_pattern(
}
};
- r.push_str(&format!(r"(?P<{}>{})", name, kind.regex_str()));
+ write!(r, r"(?P<{}>{})", name, kind.regex_str()).unwrap();
end = m.end();
}
let after = &pattern[end..];