aboutsummaryrefslogtreecommitdiff
path: root/helix-core
diff options
context:
space:
mode:
authorOmnikar2022-08-04 05:32:59 +0000
committerGitHub2022-08-04 05:32:59 +0000
commitafd292e3b9616ea9098ca3a7d24a730508b84809 (patch)
treebd02d7728b4d8a0ed000fc0b06479921c692b70d /helix-core
parent5d33dbacac3564c50b9f3a74cfef6a956c35dd80 (diff)
Resolve clippy lints (#3307)
Diffstat (limited to 'helix-core')
-rw-r--r--helix-core/src/increment/date_time.rs3
1 files changed, 2 insertions, 1 deletions
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..];
}