Skip to content

Commit 91df88d

Browse files
authoredMar 14, 2023
Do not build an extra identical structure (#2440)
This makes the code more complex than needed. Part of a clippy lint being developed.
1 parent fa04ced commit 91df88d

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed
 

‎bindgen/regex_set.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,7 @@ pub struct RegexSet {
1919
impl RegexSet {
2020
/// Create a new RegexSet
2121
pub fn new() -> RegexSet {
22-
RegexSet {
23-
..Default::default()
24-
}
22+
RegexSet::default()
2523
}
2624

2725
/// Is this set empty?

0 commit comments

Comments
 (0)
Please sign in to comment.