From e616e8f9aa2230cb4c4d756f9aa9f0231507581c Mon Sep 17 00:00:00 2001 From: MystiPanda Date: Wed, 3 Jul 2024 13:13:54 +0800 Subject: [PATCH] fix: Insertion order #1300 --- src-tauri/src/enhance/seq.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src-tauri/src/enhance/seq.rs b/src-tauri/src/enhance/seq.rs index a9a1cce..1aa1785 100644 --- a/src-tauri/src/enhance/seq.rs +++ b/src-tauri/src/enhance/seq.rs @@ -8,7 +8,7 @@ pub struct SeqMap { } pub fn use_seq(seq_map: SeqMap, config: Mapping, name: &str) -> Mapping { - let prepend = seq_map.prepend; + let mut prepend = seq_map.prepend; let append = seq_map.append; let delete = seq_map.delete; @@ -16,7 +16,7 @@ pub fn use_seq(seq_map: SeqMap, config: Mapping, name: &str) -> Mapping { val.as_sequence().unwrap_or(&Sequence::default()).clone() }); let mut seq = origin_seq.clone(); - + prepend.reverse(); for item in prepend { seq.insert(0, item); }