no more cargo advisories ignored

This commit is contained in:
2026-03-05 15:48:35 -06:00
parent 9af3192d1d
commit 4b0000c116
10 changed files with 244 additions and 844 deletions

View File

@@ -161,7 +161,7 @@ impl Connection {
pub async fn close(&self) -> MqResult<()> {
let mut conn_guard = self.connection.write().await;
if let Some(conn) = conn_guard.take() {
conn.close(200, "Normal shutdown")
conn.close(200, "Normal shutdown".into())
.await
.map_err(|e| MqError::Connection(format!("Failed to close connection: {}", e)))?;
info!("Connection closed");
@@ -187,7 +187,7 @@ impl Connection {
channel
.exchange_declare(
&config.name,
config.name.as_str().into(),
kind,
ExchangeDeclareOptions {
durable: config.durable,
@@ -216,7 +216,7 @@ impl Connection {
channel
.queue_declare(
&config.name,
config.name.as_str().into(),
QueueDeclareOptions {
durable: config.durable,
exclusive: config.exclusive,
@@ -248,9 +248,9 @@ impl Connection {
channel
.queue_bind(
queue,
exchange,
routing_key,
queue.into(),
exchange.into(),
routing_key.into(),
QueueBindOptions::default(),
FieldTable::default(),
)
@@ -315,7 +315,7 @@ impl Connection {
channel
.queue_declare(
&config.name,
config.name.as_str().into(),
QueueDeclareOptions {
durable: config.durable,
exclusive: config.exclusive,

View File

@@ -59,8 +59,8 @@ impl Consumer {
let consumer = self
.channel
.basic_consume(
&self.config.queue,
&self.config.tag,
self.config.queue.as_str().into(),
self.config.tag.as_str().into(),
BasicConsumeOptions {
no_ack: self.config.auto_ack,
exclusive: self.config.exclusive,

View File

@@ -88,8 +88,8 @@ impl Publisher {
let confirmation = self
.channel
.basic_publish(
exchange,
routing_key,
exchange.into(),
routing_key.into(),
BasicPublishOptions::default(),
&payload,
properties,
@@ -129,8 +129,8 @@ impl Publisher {
self.channel
.basic_publish(
exchange,
routing_key,
exchange.into(),
routing_key.into(),
BasicPublishOptions::default(),
payload,
properties,