Skip to content

Commit ab615e9

Browse files
committed
sys: apply cargo clippy
1 parent c94b3a9 commit ab615e9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

capstone-sys/build.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ fn impl_insid_to_insenum(bindings: &str) -> String {
198198
let arch = cs_arch.cs_name();
199199

200200
// find architecture instructions enum declaration
201-
let re_enum_def = Regex::new(&format!("pub enum {}_insn (?s)\\{{.*?\\}}", arch))
201+
let re_enum_def = Regex::new(&format!("pub enum {arch}_insn (?s)\\{{.*?\\}}"))
202202
.expect("Unable to compile regex");
203203
let cap_enum_def = &re_enum_def
204204
.captures(bindings)

0 commit comments

Comments
 (0)