aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMarcel Hellwig <punkkeks@users.noreply.github.com>2017-12-08 16:16:24 +0100
committerAndrew Gallant <jamslam@gmail.com>2017-12-08 10:25:31 -0500
commite81c405c955e67433aaac82fdf7bea65f13715c0 (patch)
tree843582adc7148da2b19d66c69a625ae248f0cad8 /src
parent7f84f871314b438e3cf4e3342b86f308ccb9110c (diff)
downloadbyteorder-e81c405c955e67433aaac82fdf7bea65f13715c0.tar.gz
Use depcrated tag instead of pure documentation
Since nearly 2 years, there is a depcrated attribute, which can be used https://github.com/rust-lang/rfcs/blob/master/text/1270-deprecation.md
Diffstat (limited to 'src')
-rw-r--r--src/io.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/io.rs b/src/io.rs
index c5645fa..0e32bf0 100644
--- a/src/io.rs
+++ b/src/io.rs
@@ -860,6 +860,7 @@ pub trait ReadBytesExt: io::Read {
/// assert_eq!([f32::consts::PI, 1.0], dst);
/// ```
#[inline]
+ #[deprecated(since="1.2.0", note="please use `read_f32_into` instead")]
fn read_f32_into_unchecked<T: ByteOrder>(
&mut self,
dst: &mut [f32],
@@ -953,6 +954,7 @@ pub trait ReadBytesExt: io::Read {
/// assert_eq!([f64::consts::PI, 1.0], dst);
/// ```
#[inline]
+ #[deprecated(since="1.2.0", note="please use `read_f64_into` instead")]
fn read_f64_into_unchecked<T: ByteOrder>(
&mut self,
dst: &mut [f64],