Skip to content

Commit eb12d2f

Browse files
committed
Remove needless borrowing
1 parent 925927d commit eb12d2f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

apps/desktop/src-tauri/src/recording.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -408,7 +408,7 @@ pub fn format_project_name<'a>(
408408
static ref TIME_REGEX: Regex = Regex::new(r"\{time(?::([^}]+))?\}").unwrap();
409409
static ref MOMENT_REGEX: Regex = Regex::new(r"\{moment(?::([^}]+))?\}").unwrap();
410410
static ref AC: aho_corasick::AhoCorasick = {
411-
aho_corasick::AhoCorasick::new(&[
411+
aho_corasick::AhoCorasick::new([
412412
"{recording_mode}",
413413
"{mode}",
414414
"{target_kind}",
@@ -426,7 +426,7 @@ pub fn format_project_name<'a>(
426426
};
427427

428428
let result = AC
429-
.try_replace_all(&haystack, &[recording_mode, mode, target_kind, target_name])
429+
.try_replace_all(haystack, &[recording_mode, mode, target_kind, target_name])
430430
.expect("AhoCorasick replace should never fail with default configuration");
431431

432432
let result = DATE_REGEX.replace_all(&result, |caps: &regex::Captures| {

0 commit comments

Comments
 (0)