From 942ecad7789f320f845da87367ff3fc546e56972 Mon Sep 17 00:00:00 2001 From: Manuel Cillero Date: Sun, 19 Nov 2023 00:24:16 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=9A=20Rename=20Arc...Op::AddFirst=20to?= =?UTF-8?q?=20Prepend?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pagetop/src/core/component/arc_any.rs | 4 ++-- pagetop/src/core/component/arc_typed.rs | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/pagetop/src/core/component/arc_any.rs b/pagetop/src/core/component/arc_any.rs index 4b8759cd..b9252c36 100644 --- a/pagetop/src/core/component/arc_any.rs +++ b/pagetop/src/core/component/arc_any.rs @@ -55,7 +55,7 @@ pub enum ArcAnyOp { Add(ArcAnyComponent), AddAfterId(&'static str, ArcAnyComponent), AddBeforeId(&'static str, ArcAnyComponent), - AddFirst(ArcAnyComponent), + Prepend(ArcAnyComponent), RemoveById(&'static str), ReplaceById(&'static str, ArcAnyComponent), Reset, @@ -91,7 +91,7 @@ impl AnyComponents { Some(index) => self.0.insert(index, arc), _ => self.0.insert(0, arc), }, - ArcAnyOp::AddFirst(arc) => self.0.insert(0, arc), + ArcAnyOp::Prepend(arc) => self.0.insert(0, arc), ArcAnyOp::RemoveById(id) => { if let Some(index) = self.0.iter().position(|c| c.id() == id) { self.0.remove(index); diff --git a/pagetop/src/core/component/arc_typed.rs b/pagetop/src/core/component/arc_typed.rs index 7bce8c98..483229a0 100644 --- a/pagetop/src/core/component/arc_typed.rs +++ b/pagetop/src/core/component/arc_typed.rs @@ -60,7 +60,7 @@ pub enum ArcTypedOp { Add(ArcTypedComponent), AddAfterId(&'static str, ArcTypedComponent), AddBeforeId(&'static str, ArcTypedComponent), - AddFirst(ArcTypedComponent), + Prepend(ArcTypedComponent), RemoveById(&'static str), ReplaceById(&'static str, ArcTypedComponent), Reset, @@ -88,7 +88,7 @@ impl TypedComponents { Some(index) => self.0.insert(index, one), _ => self.0.insert(0, one), }, - ArcTypedOp::AddFirst(one) => self.0.insert(0, one), + ArcTypedOp::Prepend(one) => self.0.insert(0, one), ArcTypedOp::RemoveById(id) => { if let Some(index) = self.0.iter().position(|c| c.id() == id) { self.0.remove(index);