diff --git a/Cargo.toml b/Cargo.toml index 1e1b25e..b6c49ac 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -22,9 +22,9 @@ fibers_timeout_queue = "0.1" fibers_transport = "0.1.3" futures = "0.1" rand = "0.8" -stun_codec = "0.2" +stun_codec = "0.3" trackable = "1" [dev-dependencies] -clap = { version = "3", features = ["derive"] } +clap = { version = "4", features = ["derive"] } fibers_global = "0.1" diff --git a/src/lib.rs b/src/lib.rs index f85db6b..6329b64 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -70,16 +70,6 @@ //! //! [RFC 5389]: https://tools.ietf.org/html/rfc5389 #![warn(missing_docs)] -extern crate bytecodec; -extern crate factory; -extern crate fibers; -#[cfg(test)] -extern crate fibers_global; -extern crate fibers_timeout_queue; -extern crate fibers_transport; -extern crate futures; -extern crate rand; -extern crate stun_codec; #[macro_use] extern crate trackable; diff --git a/src/message.rs b/src/message.rs index bb2aab9..5b9a2cb 100644 --- a/src/message.rs +++ b/src/message.rs @@ -331,7 +331,7 @@ impl ErrorResponse { request.method(), request.transaction_id(), ); - message.add_attribute(error.into()); + message.add_attribute(error); ErrorResponse(message) } diff --git a/src/server.rs b/src/server.rs index 656a5b7..2ba045b 100644 --- a/src/server.rs +++ b/src/server.rs @@ -15,7 +15,7 @@ use factory::DefaultFactory; use factory::Factory; use fibers::sync::mpsc; use fibers::{BoxSpawn, Spawn}; -use fibers_transport::{self, FixedPeerTransporter, TcpTransport, UdpTransport}; +use fibers_transport::{FixedPeerTransporter, TcpTransport, UdpTransport}; use futures::{Async, Future, Poll, Stream}; use std::fmt; use std::net::SocketAddr;