Replace trim_left_matches with trim_start_matches

This commit is contained in:
Bernardo Meurer 2019-04-16 22:54:42 -07:00
parent 2d0768c8d2
commit 9660048b41
No known key found for this signature in database
GPG Key ID: E421C74191EA186C

View File

@ -88,7 +88,7 @@ impl<'var> Pair<'var> {
let mut iter = self.value.split(';').peekable(); let mut iter = self.value.split(';').peekable();
while let Some(num) = iter.next() { while let Some(num) = iter.next() {
match num.trim_left_matches('0') { match num.trim_start_matches('0') {
// Bold and italic // Bold and italic
"1" => style = style.bold(), "1" => style = style.bold(),