Skip to content

Commit f30f747

Browse files
committed
Silence deprecation warning
1 parent f4dee21 commit f30f747

13 files changed

+39
-39
lines changed

patches/1b946106b7955d3dcde26719b9b62a5a2c4b78fe.patch

+3-3
Original file line numberDiff line numberDiff line change
@@ -1675,9 +1675,8 @@ diff --git a/util.rs b/util.rs
16751675
index 33cc87e..fd1257d 100644
16761676
--- a/util.rs
16771677
+++ b/util.rs
1678-
@@ -1,8 +1,11 @@
1678+
@@ -1,8 +1,10 @@
16791679
#![allow(missing_copy_implementations)]
1680-
+#![allow(deprecated)]
16811680

16821681
-use crate::fmt;
16831682
-use crate::io::{self, Read, Initializer, Write, ErrorKind, BufRead, IoSlice, IoSliceMut};
@@ -1690,7 +1689,7 @@ index 33cc87e..fd1257d 100644
16901689

16911690
/// Copies the entire contents of a reader into a writer.
16921691
///
1693-
@@ -39,27 +42,24 @@ use crate::mem::MaybeUninit;
1692+
@@ -39,27 +42,25 @@ use crate::mem::MaybeUninit;
16941693
/// Ok(())
16951694
/// }
16961695
/// ```
@@ -1706,6 +1705,7 @@ index 33cc87e..fd1257d 100644
17061705
- // than if this code were in an external lib.
17071706
- unsafe { reader.initializer().initialize(buf.get_mut()); }
17081707
+ let mut buf = unsafe {
1708+
+ #[allow(deprecated)]
17091709
+ let mut buf: [u8; super::DEFAULT_BUF_SIZE] = mem::uninitialized();
17101710
+ reader.initializer().initialize(&mut buf);
17111711
+ buf

patches/413ab57c0210ecbe92298c53ec4e1e39f97e4e4c.patch

+3-3
Original file line numberDiff line numberDiff line change
@@ -1673,9 +1673,8 @@ diff --git a/util.rs b/util.rs
16731673
index 33cc87e..fd1257d 100644
16741674
--- a/util.rs
16751675
+++ b/util.rs
1676-
@@ -1,8 +1,11 @@
1676+
@@ -1,8 +1,10 @@
16771677
#![allow(missing_copy_implementations)]
1678-
+#![allow(deprecated)]
16791678

16801679
-use crate::fmt;
16811680
-use crate::io::{self, Read, Initializer, Write, ErrorKind, BufRead, IoSlice, IoSliceMut};
@@ -1688,7 +1687,7 @@ index 33cc87e..fd1257d 100644
16881687

16891688
/// Copies the entire contents of a reader into a writer.
16901689
///
1691-
@@ -39,27 +42,24 @@ use crate::mem::MaybeUninit;
1690+
@@ -39,27 +42,25 @@ use crate::mem::MaybeUninit;
16921691
/// Ok(())
16931692
/// }
16941693
/// ```
@@ -1704,6 +1703,7 @@ index 33cc87e..fd1257d 100644
17041703
- // than if this code were in an external lib.
17051704
- unsafe { reader.initializer().initialize(buf.get_mut()); }
17061705
+ let mut buf = unsafe {
1706+
+ #[allow(deprecated)]
17071707
+ let mut buf: [u8; super::DEFAULT_BUF_SIZE] = mem::uninitialized();
17081708
+ reader.initializer().initialize(&mut buf);
17091709
+ buf

patches/4436c9d35498e7ae3da261f6141d6d73b915e1e8.patch

+3-3
Original file line numberDiff line numberDiff line change
@@ -2023,9 +2023,8 @@ diff --git a/util.rs b/util.rs
20232023
index b09161b..4b481c8 100644
20242024
--- a/util.rs
20252025
+++ b/util.rs
2026-
@@ -1,8 +1,11 @@
2026+
@@ -1,8 +1,10 @@
20272027
#![allow(missing_copy_implementations)]
2028-
+#![allow(deprecated)]
20292028

20302029
-use crate::fmt;
20312030
-use crate::io::{self, BufRead, ErrorKind, Initializer, IoSlice, IoSliceMut, Read, Write};
@@ -2038,7 +2037,7 @@ index b09161b..4b481c8 100644
20382037

20392038
/// Copies the entire contents of a reader into a writer.
20402039
///
2041-
@@ -39,31 +42,26 @@ use crate::mem::MaybeUninit;
2040+
@@ -39,31 +42,27 @@ use crate::mem::MaybeUninit;
20422041
/// Ok(())
20432042
/// }
20442043
/// ```
@@ -2058,6 +2057,7 @@ index b09161b..4b481c8 100644
20582057
- reader.initializer().initialize(buf.get_mut());
20592058
- }
20602059
+ let mut buf = unsafe {
2060+
+ #[allow(deprecated)]
20612061
+ let mut buf: [u8; super::DEFAULT_BUF_SIZE] = mem::uninitialized();
20622062
+ reader.initializer().initialize(&mut buf);
20632063
+ buf

patches/5b5196ad65db877c2f140dfc7a25f3fc6f2e40c6.patch

+3-3
Original file line numberDiff line numberDiff line change
@@ -1673,9 +1673,8 @@ diff --git a/util.rs b/util.rs
16731673
index 33cc87e..fd1257d 100644
16741674
--- a/util.rs
16751675
+++ b/util.rs
1676-
@@ -1,8 +1,11 @@
1676+
@@ -1,8 +1,10 @@
16771677
#![allow(missing_copy_implementations)]
1678-
+#![allow(deprecated)]
16791678

16801679
-use crate::fmt;
16811680
-use crate::io::{self, Read, Initializer, Write, ErrorKind, BufRead, IoSlice, IoSliceMut};
@@ -1688,7 +1687,7 @@ index 33cc87e..fd1257d 100644
16881687

16891688
/// Copies the entire contents of a reader into a writer.
16901689
///
1691-
@@ -39,27 +42,24 @@ use crate::mem::MaybeUninit;
1690+
@@ -39,27 +42,25 @@ use crate::mem::MaybeUninit;
16921691
/// Ok(())
16931692
/// }
16941693
/// ```
@@ -1704,6 +1703,7 @@ index 33cc87e..fd1257d 100644
17041703
- // than if this code were in an external lib.
17051704
- unsafe { reader.initializer().initialize(buf.get_mut()); }
17061705
+ let mut buf = unsafe {
1706+
+ #[allow(deprecated)]
17071707
+ let mut buf: [u8; super::DEFAULT_BUF_SIZE] = mem::uninitialized();
17081708
+ reader.initializer().initialize(&mut buf);
17091709
+ buf

patches/62e86b42b5ed342d30c539e22810c26d312995e2.patch

+3-3
Original file line numberDiff line numberDiff line change
@@ -1673,9 +1673,8 @@ diff --git a/util.rs b/util.rs
16731673
index 33cc87e..fd1257d 100644
16741674
--- a/util.rs
16751675
+++ b/util.rs
1676-
@@ -1,8 +1,11 @@
1676+
@@ -1,8 +1,10 @@
16771677
#![allow(missing_copy_implementations)]
1678-
+#![allow(deprecated)]
16791678

16801679
-use crate::fmt;
16811680
-use crate::io::{self, Read, Initializer, Write, ErrorKind, BufRead, IoSlice, IoSliceMut};
@@ -1688,7 +1687,7 @@ index 33cc87e..fd1257d 100644
16881687

16891688
/// Copies the entire contents of a reader into a writer.
16901689
///
1691-
@@ -39,27 +42,24 @@ use crate::mem::MaybeUninit;
1690+
@@ -39,27 +42,25 @@ use crate::mem::MaybeUninit;
16921691
/// Ok(())
16931692
/// }
16941693
/// ```
@@ -1704,6 +1703,7 @@ index 33cc87e..fd1257d 100644
17041703
- // than if this code were in an external lib.
17051704
- unsafe { reader.initializer().initialize(buf.get_mut()); }
17061705
+ let mut buf = unsafe {
1706+
+ #[allow(deprecated)]
17071707
+ let mut buf: [u8; super::DEFAULT_BUF_SIZE] = mem::uninitialized();
17081708
+ reader.initializer().initialize(&mut buf);
17091709
+ buf

patches/9ff52752d855722c55dbc71d9b22bd42eabfc468.patch

+3-3
Original file line numberDiff line numberDiff line change
@@ -1647,9 +1647,8 @@ diff --git a/util.rs b/util.rs
16471647
index 33cc87e..fd1257d 100644
16481648
--- a/util.rs
16491649
+++ b/util.rs
1650-
@@ -1,8 +1,11 @@
1650+
@@ -1,8 +1,10 @@
16511651
#![allow(missing_copy_implementations)]
1652-
+#![allow(deprecated)]
16531652

16541653
-use crate::fmt;
16551654
-use crate::io::{self, Read, Initializer, Write, ErrorKind, BufRead, IoSlice, IoSliceMut};
@@ -1662,7 +1661,7 @@ index 33cc87e..fd1257d 100644
16621661

16631662
/// Copies the entire contents of a reader into a writer.
16641663
///
1665-
@@ -39,27 +42,24 @@ use crate::mem::MaybeUninit;
1664+
@@ -39,27 +42,25 @@ use crate::mem::MaybeUninit;
16661665
/// Ok(())
16671666
/// }
16681667
/// ```
@@ -1678,6 +1677,7 @@ index 33cc87e..fd1257d 100644
16781677
- // than if this code were in an external lib.
16791678
- unsafe { reader.initializer().initialize(buf.get_mut()); }
16801679
+ let mut buf = unsafe {
1680+
+ #[allow(deprecated)]
16811681
+ let mut buf: [u8; super::DEFAULT_BUF_SIZE] = mem::uninitialized();
16821682
+ reader.initializer().initialize(&mut buf);
16831683
+ buf

patches/a8c5f90b06c9bf2bfa2c2f4aedd7c395cb92195d.patch

+3-3
Original file line numberDiff line numberDiff line change
@@ -1675,9 +1675,8 @@ diff --git a/util.rs b/util.rs
16751675
index 33cc87e..fd1257d 100644
16761676
--- a/util.rs
16771677
+++ b/util.rs
1678-
@@ -1,8 +1,11 @@
1678+
@@ -1,8 +1,10 @@
16791679
#![allow(missing_copy_implementations)]
1680-
+#![allow(deprecated)]
16811680

16821681
-use crate::fmt;
16831682
-use crate::io::{self, Read, Initializer, Write, ErrorKind, BufRead, IoSlice, IoSliceMut};
@@ -1690,7 +1689,7 @@ index 33cc87e..fd1257d 100644
16901689

16911690
/// Copies the entire contents of a reader into a writer.
16921691
///
1693-
@@ -39,27 +42,24 @@ use crate::mem::MaybeUninit;
1692+
@@ -39,27 +42,25 @@ use crate::mem::MaybeUninit;
16941693
/// Ok(())
16951694
/// }
16961695
/// ```
@@ -1706,6 +1705,7 @@ index 33cc87e..fd1257d 100644
17061705
- // than if this code were in an external lib.
17071706
- unsafe { reader.initializer().initialize(buf.get_mut()); }
17081707
+ let mut buf = unsafe {
1708+
+ #[allow(deprecated)]
17091709
+ let mut buf: [u8; super::DEFAULT_BUF_SIZE] = mem::uninitialized();
17101710
+ reader.initializer().initialize(&mut buf);
17111711
+ buf

patches/b03d3dc478ba13f405cf9a877a4894de096a1cc1.patch

+3-3
Original file line numberDiff line numberDiff line change
@@ -1675,9 +1675,8 @@ diff --git a/util.rs b/util.rs
16751675
index 33cc87e..fd1257d 100644
16761676
--- a/util.rs
16771677
+++ b/util.rs
1678-
@@ -1,8 +1,11 @@
1678+
@@ -1,8 +1,10 @@
16791679
#![allow(missing_copy_implementations)]
1680-
+#![allow(deprecated)]
16811680

16821681
-use crate::fmt;
16831682
-use crate::io::{self, Read, Initializer, Write, ErrorKind, BufRead, IoSlice, IoSliceMut};
@@ -1690,7 +1689,7 @@ index 33cc87e..fd1257d 100644
16901689

16911690
/// Copies the entire contents of a reader into a writer.
16921691
///
1693-
@@ -39,27 +42,24 @@ use crate::mem::MaybeUninit;
1692+
@@ -39,27 +42,25 @@ use crate::mem::MaybeUninit;
16941693
/// Ok(())
16951694
/// }
16961695
/// ```
@@ -1706,6 +1705,7 @@ index 33cc87e..fd1257d 100644
17061705
- // than if this code were in an external lib.
17071706
- unsafe { reader.initializer().initialize(buf.get_mut()); }
17081707
+ let mut buf = unsafe {
1708+
+ #[allow(deprecated)]
17091709
+ let mut buf: [u8; super::DEFAULT_BUF_SIZE] = mem::uninitialized();
17101710
+ reader.initializer().initialize(&mut buf);
17111711
+ buf

patches/b405aa2d0301c5fc448299501278ae2db4e15e50.patch

+3-3
Original file line numberDiff line numberDiff line change
@@ -1647,9 +1647,8 @@ diff --git a/util.rs b/util.rs
16471647
index 33cc87e..fd1257d 100644
16481648
--- a/util.rs
16491649
+++ b/util.rs
1650-
@@ -1,8 +1,11 @@
1650+
@@ -1,8 +1,10 @@
16511651
#![allow(missing_copy_implementations)]
1652-
+#![allow(deprecated)]
16531652

16541653
-use crate::fmt;
16551654
-use crate::io::{self, Read, Initializer, Write, ErrorKind, BufRead, IoSlice, IoSliceMut};
@@ -1662,7 +1661,7 @@ index 33cc87e..fd1257d 100644
16621661

16631662
/// Copies the entire contents of a reader into a writer.
16641663
///
1665-
@@ -39,27 +42,24 @@ use crate::mem::MaybeUninit;
1664+
@@ -39,27 +42,25 @@ use crate::mem::MaybeUninit;
16661665
/// Ok(())
16671666
/// }
16681667
/// ```
@@ -1678,6 +1677,7 @@ index 33cc87e..fd1257d 100644
16781677
- // than if this code were in an external lib.
16791678
- unsafe { reader.initializer().initialize(buf.get_mut()); }
16801679
+ let mut buf = unsafe {
1680+
+ #[allow(deprecated)]
16811681
+ let mut buf: [u8; super::DEFAULT_BUF_SIZE] = mem::uninitialized();
16821682
+ reader.initializer().initialize(&mut buf);
16831683
+ buf

patches/b94e59cc41f8eeb36ee269cae3275d7620189c14.patch

+3-3
Original file line numberDiff line numberDiff line change
@@ -1647,9 +1647,8 @@ diff --git a/util.rs b/util.rs
16471647
index 33cc87e..fd1257d 100644
16481648
--- a/util.rs
16491649
+++ b/util.rs
1650-
@@ -1,8 +1,11 @@
1650+
@@ -1,8 +1,10 @@
16511651
#![allow(missing_copy_implementations)]
1652-
+#![allow(deprecated)]
16531652

16541653
-use crate::fmt;
16551654
-use crate::io::{self, Read, Initializer, Write, ErrorKind, BufRead, IoSlice, IoSliceMut};
@@ -1662,7 +1661,7 @@ index 33cc87e..fd1257d 100644
16621661

16631662
/// Copies the entire contents of a reader into a writer.
16641663
///
1665-
@@ -39,27 +42,24 @@ use crate::mem::MaybeUninit;
1664+
@@ -39,27 +42,25 @@ use crate::mem::MaybeUninit;
16661665
/// Ok(())
16671666
/// }
16681667
/// ```
@@ -1678,6 +1677,7 @@ index 33cc87e..fd1257d 100644
16781677
- // than if this code were in an external lib.
16791678
- unsafe { reader.initializer().initialize(buf.get_mut()); }
16801679
+ let mut buf = unsafe {
1680+
+ #[allow(deprecated)]
16811681
+ let mut buf: [u8; super::DEFAULT_BUF_SIZE] = mem::uninitialized();
16821682
+ reader.initializer().initialize(&mut buf);
16831683
+ buf

patches/dad56c39474377c7d47e261b380d0be3aed104cc.patch

+3-3
Original file line numberDiff line numberDiff line change
@@ -1675,9 +1675,8 @@ diff --git a/util.rs b/util.rs
16751675
index 33cc87e..fd1257d 100644
16761676
--- a/util.rs
16771677
+++ b/util.rs
1678-
@@ -1,8 +1,11 @@
1678+
@@ -1,8 +1,10 @@
16791679
#![allow(missing_copy_implementations)]
1680-
+#![allow(deprecated)]
16811680

16821681
-use crate::fmt;
16831682
-use crate::io::{self, Read, Initializer, Write, ErrorKind, BufRead, IoSlice, IoSliceMut};
@@ -1690,7 +1689,7 @@ index 33cc87e..fd1257d 100644
16901689

16911690
/// Copies the entire contents of a reader into a writer.
16921691
///
1693-
@@ -39,27 +42,24 @@ use crate::mem::MaybeUninit;
1692+
@@ -39,27 +42,25 @@ use crate::mem::MaybeUninit;
16941693
/// Ok(())
16951694
/// }
16961695
/// ```
@@ -1706,6 +1705,7 @@ index 33cc87e..fd1257d 100644
17061705
- // than if this code were in an external lib.
17071706
- unsafe { reader.initializer().initialize(buf.get_mut()); }
17081707
+ let mut buf = unsafe {
1708+
+ #[allow(deprecated)]
17091709
+ let mut buf: [u8; super::DEFAULT_BUF_SIZE] = mem::uninitialized();
17101710
+ reader.initializer().initialize(&mut buf);
17111711
+ buf

patches/e697ffbbcb41559c8de3ca3b94f3b9467e662a19.patch

+3-3
Original file line numberDiff line numberDiff line change
@@ -1673,9 +1673,8 @@ diff --git a/util.rs b/util.rs
16731673
index 33cc87e..fd1257d 100644
16741674
--- a/util.rs
16751675
+++ b/util.rs
1676-
@@ -1,8 +1,11 @@
1676+
@@ -1,8 +1,10 @@
16771677
#![allow(missing_copy_implementations)]
1678-
+#![allow(deprecated)]
16791678

16801679
-use crate::fmt;
16811680
-use crate::io::{self, Read, Initializer, Write, ErrorKind, BufRead, IoSlice, IoSliceMut};
@@ -1688,7 +1687,7 @@ index 33cc87e..fd1257d 100644
16881687

16891688
/// Copies the entire contents of a reader into a writer.
16901689
///
1691-
@@ -39,27 +42,24 @@ use crate::mem::MaybeUninit;
1690+
@@ -39,27 +42,25 @@ use crate::mem::MaybeUninit;
16921691
/// Ok(())
16931692
/// }
16941693
/// ```
@@ -1704,6 +1703,7 @@ index 33cc87e..fd1257d 100644
17041703
- // than if this code were in an external lib.
17051704
- unsafe { reader.initializer().initialize(buf.get_mut()); }
17061705
+ let mut buf = unsafe {
1706+
+ #[allow(deprecated)]
17071707
+ let mut buf: [u8; super::DEFAULT_BUF_SIZE] = mem::uninitialized();
17081708
+ reader.initializer().initialize(&mut buf);
17091709
+ buf

patches/edb5214b29cd7de06dd10f673986d38e568b077c.patch

+3-3
Original file line numberDiff line numberDiff line change
@@ -1675,9 +1675,8 @@ diff --git a/util.rs b/util.rs
16751675
index 33cc87e..fd1257d 100644
16761676
--- a/util.rs
16771677
+++ b/util.rs
1678-
@@ -1,8 +1,11 @@
1678+
@@ -1,8 +1,10 @@
16791679
#![allow(missing_copy_implementations)]
1680-
+#![allow(deprecated)]
16811680

16821681
-use crate::fmt;
16831682
-use crate::io::{self, Read, Initializer, Write, ErrorKind, BufRead, IoSlice, IoSliceMut};
@@ -1690,7 +1689,7 @@ index 33cc87e..fd1257d 100644
16901689

16911690
/// Copies the entire contents of a reader into a writer.
16921691
///
1693-
@@ -39,27 +42,24 @@ use crate::mem::MaybeUninit;
1692+
@@ -39,27 +42,25 @@ use crate::mem::MaybeUninit;
16941693
/// Ok(())
16951694
/// }
16961695
/// ```
@@ -1706,6 +1705,7 @@ index 33cc87e..fd1257d 100644
17061705
- // than if this code were in an external lib.
17071706
- unsafe { reader.initializer().initialize(buf.get_mut()); }
17081707
+ let mut buf = unsafe {
1708+
+ #[allow(deprecated)]
17091709
+ let mut buf: [u8; super::DEFAULT_BUF_SIZE] = mem::uninitialized();
17101710
+ reader.initializer().initialize(&mut buf);
17111711
+ buf

0 commit comments

Comments
 (0)