From 6c77d0930c75369f785dbba52de031c007415a32 Mon Sep 17 00:00:00 2001 From: Berkus Decker Date: Fri, 26 Feb 2021 01:38:12 +0200 Subject: [PATCH] [sq] add missing Clone derives --- nucleus/src/arch/aarch64/memory/page_size.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/nucleus/src/arch/aarch64/memory/page_size.rs b/nucleus/src/arch/aarch64/memory/page_size.rs index f44a622..e62b455 100644 --- a/nucleus/src/arch/aarch64/memory/page_size.rs +++ b/nucleus/src/arch/aarch64/memory/page_size.rs @@ -17,7 +17,7 @@ pub trait PageSize: Copy + PartialEq + Eq + PartialOrd + Ord { pub trait NotGiantPageSize: PageSize {} // @todo doesn't have to be pub?? /// A standard 4KiB page. -#[derive(Debug, Copy, PartialEq, Eq, PartialOrd, Ord)] +#[derive(Debug, Copy, Clone, PartialEq, Eq, PartialOrd, Ord)] pub enum Size4KiB {} impl PageSize for Size4KiB { @@ -31,7 +31,7 @@ impl NotGiantPageSize for Size4KiB {} /// A standard 16KiB page. /// Currently unused. -#[derive(Debug, Copy, PartialEq, Eq, PartialOrd, Ord)] +#[derive(Debug, Copy, Clone, PartialEq, Eq, PartialOrd, Ord)] pub enum Size16KiB {} impl PageSize for Size16KiB { @@ -44,7 +44,7 @@ impl PageSize for Size16KiB { impl NotGiantPageSize for Size16KiB {} /// A “huge” 2MiB page. -#[derive(Debug, Copy, PartialEq, Eq, PartialOrd, Ord)] +#[derive(Debug, Copy, Clone, PartialEq, Eq, PartialOrd, Ord)] pub enum Size2MiB {} impl PageSize for Size2MiB { @@ -57,7 +57,7 @@ impl PageSize for Size2MiB { impl NotGiantPageSize for Size2MiB {} /// A “giant” 1GiB page. -#[derive(Debug, Copy, PartialEq, Eq, PartialOrd, Ord)] +#[derive(Debug, Copy, Clone, PartialEq, Eq, PartialOrd, Ord)] pub enum Size1GiB {} impl PageSize for Size1GiB {