From afd292e3b9616ea9098ca3a7d24a730508b84809 Mon Sep 17 00:00:00 2001 From: Omnikar Date: Thu, 4 Aug 2022 01:32:59 -0400 Subject: Resolve clippy lints (#3307) --- helix-core/src/increment/date_time.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'helix-core') diff --git a/helix-core/src/increment/date_time.rs b/helix-core/src/increment/date_time.rs index 91fa5963..1574bf4d 100644 --- a/helix-core/src/increment/date_time.rs +++ b/helix-core/src/increment/date_time.rs @@ -5,6 +5,7 @@ use ropey::RopeSlice; use std::borrow::Cow; use std::cmp; +use std::fmt::Write; use super::Increment; use crate::{Range, Tendril}; @@ -162,7 +163,7 @@ impl Format { fields.push(field); max_len += field.max_len + remaining[..i].len(); regex += &remaining[..i]; - regex += &format!("({})", field.regex); + write!(regex, "({})", field.regex).unwrap(); remaining = &after[spec_len..]; } -- cgit v1.2.3-70-g09d2