From 89fac290d9850feb41f7bec66f91c0aa14a92501 Mon Sep 17 00:00:00 2001 From: Moritz Hoffmann Date: Tue, 2 Jul 2024 13:38:21 -0400 Subject: [PATCH] Rename slice_copy to slice_owned (#51) Signed-off-by: Moritz Hoffmann --- src/impls.rs | 2 +- src/impls/{slice_copy.rs => slice_owned.rs} | 0 src/impls/string.rs | 2 +- src/lib.rs | 2 +- 4 files changed, 3 insertions(+), 3 deletions(-) rename src/impls/{slice_copy.rs => slice_owned.rs} (100%) diff --git a/src/impls.rs b/src/impls.rs index a265d3a..519873c 100644 --- a/src/impls.rs +++ b/src/impls.rs @@ -9,7 +9,7 @@ pub mod offsets; pub mod option; pub mod result; pub mod slice; -pub mod slice_copy; +pub mod slice_owned; pub mod storage; pub mod string; pub mod tuple; diff --git a/src/impls/slice_copy.rs b/src/impls/slice_owned.rs similarity index 100% rename from src/impls/slice_copy.rs rename to src/impls/slice_owned.rs diff --git a/src/impls/string.rs b/src/impls/string.rs index 9a5d70e..e92e5bd 100644 --- a/src/impls/string.rs +++ b/src/impls/string.rs @@ -3,7 +3,7 @@ #[cfg(feature = "serde")] use serde::{Deserialize, Serialize}; -use crate::impls::slice_copy::OwnedRegion; +use crate::impls::slice_owned::OwnedRegion; use crate::{Push, Region, RegionPreference, ReserveItems}; /// A region to store strings and read `&str`. diff --git a/src/lib.rs b/src/lib.rs index b2e74c6..2333de1 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -15,7 +15,7 @@ pub use impls::mirror::MirrorRegion; pub use impls::option::OptionRegion; pub use impls::result::ResultRegion; pub use impls::slice::SliceRegion; -pub use impls::slice_copy::OwnedRegion; +pub use impls::slice_owned::OwnedRegion; pub use impls::string::StringRegion; /// An index into a region. Automatically implemented for relevant types.