diff options
author | Marcel Hellwig <punkkeks@users.noreply.github.com> | 2017-12-08 16:16:24 +0100 |
---|---|---|
committer | Andrew Gallant <jamslam@gmail.com> | 2017-12-08 10:25:31 -0500 |
commit | e81c405c955e67433aaac82fdf7bea65f13715c0 (patch) | |
tree | 843582adc7148da2b19d66c69a625ae248f0cad8 /src | |
parent | 7f84f871314b438e3cf4e3342b86f308ccb9110c (diff) | |
download | byteorder-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.rs | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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], |