Skip to content

Commit 7b3bfb7

Browse files
committed
Implement FromStrRegex for NonZero<i128>.
1 parent e5b7ddd commit 7b3bfb7

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

parse-display/src/from_str_regex.rs

+5
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,11 @@ impl FromStrRegex for i128 {
167167
regex_sint()
168168
}
169169
}
170+
impl FromStrRegex for NonZero<i128> {
171+
fn from_str_regex() -> String {
172+
regex_sint()
173+
}
174+
}
170175

171176
impl FromStrRegex for isize {
172177
fn from_str_regex() -> String {

0 commit comments

Comments
 (0)