From 5b8d7e079abfe9f5c4e43c3c795fb44d8d384e2d Mon Sep 17 00:00:00 2001 From: Daiderd Jordan Date: Thu, 30 Apr 2020 00:11:05 +0200 Subject: [PATCH] remove glob imports in easylapin --- ofborg/src/easylapin.rs | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/ofborg/src/easylapin.rs b/ofborg/src/easylapin.rs index c869820..3868335 100644 --- a/ofborg/src/easylapin.rs +++ b/ofborg/src/easylapin.rs @@ -1,7 +1,10 @@ use std::pin::Pin; use crate::config::RabbitMQConfig; -use crate::easyamqp::*; +use crate::easyamqp::{ + BindQueueConfig, ChannelExt, ConsumeConfig, ConsumerExt, ExchangeConfig, ExchangeType, + QueueConfig, +}; use crate::notifyworker::{NotificationReceiver, SimpleNotifyWorker}; use crate::ofborg; use crate::worker::{Action, SimpleWorker}; @@ -9,9 +12,14 @@ use crate::worker::{Action, SimpleWorker}; use async_std::future::Future; use async_std::stream::StreamExt; use async_std::task; +use lapin::message::Delivery; +use lapin::options::{ + BasicAckOptions, BasicConsumeOptions, BasicNackOptions, BasicPublishOptions, + ExchangeDeclareOptions, QueueBindOptions, QueueDeclareOptions, +}; +use lapin::types::{AMQPValue, FieldTable}; use lapin::{ - message::Delivery, options::*, types::AMQPValue, types::FieldTable, BasicProperties, Channel, - CloseOnDrop, Connection, ConnectionProperties, ExchangeKind, + BasicProperties, Channel, CloseOnDrop, Connection, ConnectionProperties, ExchangeKind, }; pub fn from_config(cfg: &RabbitMQConfig) -> Result, lapin::Error> {