Skip to content

Commit 181b0d1

Browse files
committed
Remove deprecated functions
1 parent b686d3d commit 181b0d1

File tree

2 files changed

+3
-15
lines changed

2 files changed

+3
-15
lines changed

Changelog.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,8 @@
9292
- [#118]: Remove `BytesStart::unescaped*` set of methods because they could return wrong results
9393
Use methods on `Attribute` instead
9494

95+
- [#403]: Remove deprecated `quick_xml::de::from_bytes` and `Deserializer::from_borrowing_reader`
96+
9597
### New Tests
9698

9799
- [#9]: Added tests for incorrect nested tags in input
@@ -109,6 +111,7 @@
109111
[#391]: https://github.com/tafia/quick-xml/pull/391
110112
[#393]: https://github.com/tafia/quick-xml/pull/393
111113
[#395]: https://github.com/tafia/quick-xml/pull/395
114+
[#403]: https://github.com/tafia/quick-xml/pull/403
112115

113116
## 0.23.0 -- 2022-05-08
114117

src/de/mod.rs

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -300,15 +300,6 @@ where
300300
from_slice(s.as_bytes())
301301
}
302302

303-
/// Deserialize an instance of type `T` from bytes of XML text.
304-
#[deprecated = "Use `from_slice` instead"]
305-
pub fn from_bytes<'de, T>(s: &'de [u8]) -> Result<T, DeError>
306-
where
307-
T: Deserialize<'de>,
308-
{
309-
from_slice(s)
310-
}
311-
312303
/// Deserialize an instance of type `T` from bytes of XML text.
313304
pub fn from_slice<'de, T>(s: &'de [u8]) -> Result<T, DeError>
314305
where
@@ -400,12 +391,6 @@ where
400391
}
401392
}
402393

403-
/// Get a new deserializer from a regular BufRead
404-
#[deprecated = "Use `Deserializer::new` instead"]
405-
pub fn from_borrowing_reader(reader: R) -> Self {
406-
Self::new(reader)
407-
}
408-
409394
/// Set the maximum number of events that could be skipped during deserialization
410395
/// of sequences.
411396
///

0 commit comments

Comments
 (0)