Skip to content

Commit 0467db5

Browse files
authored
Add missing _
1 parent 4b7dd1a commit 0467db5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/traits.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ impl TextSized for &'_ str {
1010
fn text_size(self) -> TextSize {
1111
self.len()
1212
.try_into()
13-
.unwrap_or_else(|| panic!("string too large ({}) for TextSize", self.len()))
13+
.unwrap_or_else(|_| panic!("string too large ({}) for TextSize", self.len()))
1414
}
1515
}
1616

0 commit comments

Comments
 (0)