From 3d9acac1fb514d2baf86573a9afd25e2f01800b2 Mon Sep 17 00:00:00 2001 From: Ulf Lilleengen Date: Thu, 9 Sep 2021 12:38:36 +0200 Subject: [PATCH] Fix doc warnings --- src/lib.rs | 2 +- src/options.rs | 4 ++-- src/types.rs | 12 ++++++------ 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index a418f11..5ab21c7 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -3,7 +3,7 @@ * License: Apache License 2.0 (see the file LICENSE or http://apache.org/licenses/LICENSE-2.0.html). */ -//! Dove is an open source Rust implementation of the AMQP 1.0 OASIS standard (http://www.amqp.org/). The Advanced Message Queuing Protocol (AMQP) is an open standard for passing business messages between applications or organizations. It connects systems, feeds business processes with the information they need and reliably transmits onward the instructions that achieve their goals. +//! Dove is an open source Rust implementation of the AMQP 1.0 OASIS standard (). The Advanced Message Queuing Protocol (AMQP) is an open standard for passing business messages between applications or organizations. It connects systems, feeds business processes with the information they need and reliably transmits onward the instructions that achieve their goals. //! //! Dove aims to be an AMQP 1.0 implementation with the following properties: //! diff --git a/src/options.rs b/src/options.rs index 0f4a1ab..96caa60 100644 --- a/src/options.rs +++ b/src/options.rs @@ -71,7 +71,7 @@ impl ApplyOptionsTo for LinkOptions { } } -/// http://docs.oasis-open.org/amqp/core/v1.0/os/amqp-core-messaging-v1.0-os.html#type-node-properties +/// #[derive(Debug, Clone, PartialOrd, PartialEq)] pub enum DynamicLifetimePolicy { DeleteOnClose, @@ -312,7 +312,7 @@ impl ReceiverFilter { /// Filter based on some SQL-like syntax. /// See 'apache.org:selector-filter:string', 'JMS Selectors' and 'javax.jmx.Message'. - /// https://docs.oracle.com/javaee/1.4/api/javax/jms/Message.html + /// /// /// # WARN /// Requires exchange type 'headers' diff --git a/src/types.rs b/src/types.rs index acc1908..7ebc559 100644 --- a/src/types.rs +++ b/src/types.rs @@ -54,15 +54,15 @@ pub const DESC_DETACH: Value = Value::Ulong(0x16); pub const DESC_END: Value = Value::Ulong(0x17); pub const DESC_CLOSE: Value = Value::Ulong(0x18); -/// http://docs.oasis-open.org/amqp/core/v1.0/os/amqp-core-security-v1.0-os.html#type-sasl-mechanisms +/// pub const DESC_SASL_MECHANISMS: Value = Value::Ulong(0x40); -/// http://docs.oasis-open.org/amqp/core/v1.0/os/amqp-core-security-v1.0-os.html#type-sasl-init +/// pub const DESC_SASL_INIT: Value = Value::Ulong(0x41); -/// http://docs.oasis-open.org/amqp/core/v1.0/os/amqp-core-security-v1.0-os.html#type-sasl-challenge +/// pub const DESC_SASL_CHALLENGE: Value = Value::Ulong(0x42); -/// http://docs.oasis-open.org/amqp/core/v1.0/os/amqp-core-security-v1.0-os.html#type-sasl-response +/// pub const DESC_SASL_RESPONSE: Value = Value::Ulong(0x43); -/// http://docs.oasis-open.org/amqp/core/v1.0/os/amqp-core-security-v1.0-os.html#type-sasl-outcome +/// pub const DESC_SASL_OUTCOME: Value = Value::Ulong(0x44); pub const DESC_ERROR: Value = Value::Ulong(0x1D); @@ -163,7 +163,7 @@ impl<'a> From<&'a Value> for ValueRef<'a> { } /// An owned value type that can be transferred to or from the broker. -/// http://docs.oasis-open.org/amqp/core/v1.0/csprd01/amqp-core-types-v1.0-csprd01.html#toc +/// #[derive(Clone, PartialEq, Debug, PartialOrd, Ord, Eq, derive_more::From)] pub enum Value { Described(Box, Box),