Remove redundant imports

These became warnings in a recent nightly.

The TryFrom/TryInto imports were missed in
4089891f6c, but the rest are truly
redundant.
This commit is contained in:
Emmanuel Gil Peyrot 2024-02-27 15:16:47 +01:00
commit 1bab5c3cd9
22 changed files with 2 additions and 27 deletions

View file

@ -132,7 +132,6 @@ impl From<Conference> for Element {
mod tests {
use super::*;
use crate::pubsub::{pubsub::Item as PubSubItem, PubSubEvent};
use crate::Element;
#[cfg(target_pointer_width = "32")]
#[test]

View file

@ -183,7 +183,6 @@ pub fn query_ecaps2(hash: Hash) -> DiscoInfoQuery {
#[cfg(test)]
mod tests {
use super::*;
use crate::util::error::Error;
use crate::Element;
#[cfg(target_pointer_width = "32")]

View file

@ -114,7 +114,6 @@ impl IqResultPayload for SlotResult {}
#[cfg(test)]
mod tests {
use super::*;
use crate::Element;
#[test]
fn test_slot_request() {

View file

@ -160,8 +160,6 @@ impl IqResultPayload for Fin {}
#[cfg(test)]
mod tests {
use super::*;
use crate::util::error::Error;
use minidom::Element;
#[cfg(target_pointer_width = "32")]
#[test]

View file

@ -185,7 +185,7 @@ impl From<PubSubOwner> for Element {
#[cfg(test)]
mod tests {
use super::*;
use crate::data_forms::{DataForm, DataFormType, Field, FieldType};
use crate::data_forms::{DataFormType, Field, FieldType};
use jid::BareJid;
use std::str::FromStr;

View file

@ -544,7 +544,7 @@ impl From<PubSub> for Element {
#[cfg(test)]
mod tests {
use super::*;
use crate::data_forms::{DataForm, DataFormType, Field, FieldType};
use crate::data_forms::{DataFormType, Field, FieldType};
#[test]
fn create() {

View file

@ -35,7 +35,6 @@ generate_element!(
mod tests {
use super::*;
use crate::Element;
use std::convert::{TryFrom, TryInto};
#[cfg(target_pointer_width = "32")]
#[test]

View file

@ -213,7 +213,6 @@ impl From<Failure> for Element {
#[cfg(test)]
mod tests {
use super::*;
use crate::Element;
#[cfg(target_pointer_width = "32")]
#[test]

View file

@ -100,7 +100,6 @@ pub fn generate_address_field<S: Into<String>>(var: S, values: Vec<String>) -> F
#[cfg(test)]
mod tests {
use super::*;
use crate::data_forms::{DataForm, DataFormType, Field, FieldType};
#[cfg(target_pointer_width = "32")]
#[test]

View file

@ -95,7 +95,6 @@ impl IqResultPayload for VCard {}
#[cfg(test)]
mod tests {
use super::*;
use crate::Element;
use base64::Engine;
use std::str::FromStr;