Skip to content

Commit 41090f3

Browse files
committed
Correct the deprecation since= versions for 0.16
1 parent ddc8271 commit 41090f3

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

src/impl_methods.rs

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1955,7 +1955,7 @@ where
19551955
/// [3., 4.]])
19561956
/// );
19571957
/// ```
1958-
#[deprecated = "Use `.into_shape_with_order()` or `.to_shape()`"]
1958+
#[deprecated(note = "Use `.into_shape_with_order()` or `.to_shape()`", since = "0.16.0")]
19591959
pub fn into_shape<E>(self, shape: E) -> Result<ArrayBase<S, E::Dim>, ShapeError>
19601960
where E: IntoDimension
19611961
{
@@ -2064,10 +2064,7 @@ where
20642064
/// );
20652065
/// ```
20662066
#[track_caller]
2067-
#[deprecated(
2068-
note = "Obsolete, use `to_shape` or `into_shape_with_order` instead.",
2069-
since = "0.15.2"
2070-
)]
2067+
#[deprecated(note = "Use `.into_shape_with_order()` or `.to_shape()`", since = "0.16.0")]
20712068
pub fn reshape<E>(&self, shape: E) -> ArrayBase<S, E::Dim>
20722069
where
20732070
S: DataShared + DataOwned,

src/impl_owned_array.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ where D: Dimension
151151
/// Depending on slicing and strides, the logically first element of the
152152
/// array can be located at an offset. Because of this, prefer to use
153153
/// `.into_raw_vec_and_offset()` instead.
154-
#[deprecated(note = "Use .into_raw_vec_and_offset() instead")]
154+
#[deprecated(note = "Use .into_raw_vec_and_offset() instead", since = "0.16.0")]
155155
pub fn into_raw_vec(self) -> Vec<A>
156156
{
157157
self.into_raw_vec_and_offset().0

0 commit comments

Comments
 (0)