Update edition to 2021

- Remove TryFrom/Into and FromIterator imports
- Prevent impl_validator_using_provider macro in sasl crate from
  constructing trait object

Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
This commit is contained in:
Maxime “pep” Buquet 2023-11-11 14:52:55 +01:00 committed by pep
commit 4089891f6c
94 changed files with 8 additions and 100 deletions

View file

@ -20,7 +20,6 @@ use crate::prefixes::{Namespace, Prefix, Prefixes};
use crate::tree_builder::TreeBuilder;
use std::collections::{btree_map, BTreeMap};
use std::convert::{TryFrom, TryInto};
use std::io::{BufRead, Write};
use std::sync::Arc;
@ -884,8 +883,6 @@ mod tests {
#[test]
fn test_element_new() {
use std::iter::FromIterator;
let elem = Element::new(
"name".to_owned(),
"namespace".to_owned(),

View file

@ -13,7 +13,6 @@ use crate::error::Result;
use rxml::writer::Item;
use std::convert::TryInto;
use std::io::Write;
/// A node in an element tree.