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:
parent
6df8062867
commit
1bab5c3cd9
22 changed files with 2 additions and 27 deletions
|
|
@ -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]
|
||||
|
|
|
|||
|
|
@ -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")]
|
||||
|
|
|
|||
|
|
@ -114,7 +114,6 @@ impl IqResultPayload for SlotResult {}
|
|||
#[cfg(test)]
|
||||
mod tests {
|
||||
use super::*;
|
||||
use crate::Element;
|
||||
|
||||
#[test]
|
||||
fn test_slot_request() {
|
||||
|
|
|
|||
|
|
@ -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]
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
|
|
@ -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() {
|
||||
|
|
|
|||
|
|
@ -35,7 +35,6 @@ generate_element!(
|
|||
mod tests {
|
||||
use super::*;
|
||||
use crate::Element;
|
||||
use std::convert::{TryFrom, TryInto};
|
||||
|
||||
#[cfg(target_pointer_width = "32")]
|
||||
#[test]
|
||||
|
|
|
|||
|
|
@ -213,7 +213,6 @@ impl From<Failure> for Element {
|
|||
#[cfg(test)]
|
||||
mod tests {
|
||||
use super::*;
|
||||
use crate::Element;
|
||||
|
||||
#[cfg(target_pointer_width = "32")]
|
||||
#[test]
|
||||
|
|
|
|||
|
|
@ -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]
|
||||
|
|
|
|||
|
|
@ -95,7 +95,6 @@ impl IqResultPayload for VCard {}
|
|||
#[cfg(test)]
|
||||
mod tests {
|
||||
use super::*;
|
||||
use crate::Element;
|
||||
use base64::Engine;
|
||||
use std::str::FromStr;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue