Skip to content

Commit 0cc42b5

Browse files
committed
API: Remove deprecated trait DataClone
Use Data + RawDataClone as replacement
1 parent d237595 commit 0cc42b5

File tree

2 files changed

+1
-13
lines changed

2 files changed

+1
-13
lines changed

src/data_traits.rs

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -129,18 +129,6 @@ pub unsafe trait DataMut: Data + RawDataMut {
129129
}
130130
}
131131

132-
/// Array representation trait.
133-
///
134-
/// An array representation that can be cloned and allows elements to be
135-
/// accessed with safe code.
136-
///
137-
/// ***Internal trait, see `Data`.***
138-
#[deprecated(note = "use `Data + RawDataClone` instead", since = "0.13.0")]
139-
pub trait DataClone: Data + RawDataClone {}
140-
141-
#[allow(deprecated)]
142-
impl<T> DataClone for T where T: Data + RawDataClone {}
143-
144132
unsafe impl<A> RawData for RawViewRepr<*const A> {
145133
type Elem = A;
146134
fn _data_slice(&self) -> Option<&[A]> {

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ pub use crate::aliases::*;
164164

165165
#[allow(deprecated)]
166166
pub use crate::data_traits::{
167-
Data, DataClone, DataMut, DataOwned, DataShared, RawData, RawDataClone, RawDataMut,
167+
Data, DataMut, DataOwned, DataShared, RawData, RawDataClone, RawDataMut,
168168
RawDataSubst,
169169
};
170170

0 commit comments

Comments
 (0)