From 4e3528874410fd9e2ed00b1378f2dc711fbda8ad Mon Sep 17 00:00:00 2001 From: Luca Cominardi Date: Thu, 25 Jul 2024 14:57:23 +0200 Subject: [PATCH] Fix clippy --- commons/zenoh-keyexpr/src/lib.rs | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/commons/zenoh-keyexpr/src/lib.rs b/commons/zenoh-keyexpr/src/lib.rs index 5142076b6d..7f26cdfed4 100644 --- a/commons/zenoh-keyexpr/src/lib.rs +++ b/commons/zenoh-keyexpr/src/lib.rs @@ -23,15 +23,12 @@ //! This module provides 2 flavours to store strings that have been validated to respect the KE syntax, and a third is provided by [`zenoh`](https://docs.rs/zenoh): //! - [`keyexpr`] is the equivalent of a [`str`], //! - [`OwnedKeyExpr`] works like an [`Arc`](std::sync::Arc), -//! - [`KeyExpr`](https://docs.rs/zenoh/latest/zenoh/key_expr/struct.KeyExpr.html) works like a [`Cow`](std::borrow::Cow), but also stores some additional context internal to Zenoh to optimize -//! routing and network usage. +//! - [`KeyExpr`](https://docs.rs/zenoh/latest/zenoh/key_expr/struct.KeyExpr.html) works like a [`Cow`](std::borrow::Cow), but also stores some additional context internal to Zenoh to optimize routing and network usage. //! -//! All of these types [`Deref`](core::ops::Deref) to [`keyexpr`], which notably has methods to check whether a given [`keyexpr::intersects`] with another, -//! or even if a [`keyexpr::includes`] another. +//! All of these types [`Deref`](core::ops::Deref) to [`keyexpr`], which notably has methods to check whether a given [`keyexpr::intersects`] with another, or even if a [`keyexpr::includes`] another. //! //! # Tying values to Key Expressions -//! When storing values tied to Key Expressions, you might want something more specialized than a [`HashMap`](std::collections::HashMap) if you want to respect -//! the Key Expression semantics with high performance. +//! When storing values tied to Key Expressions, you might want something more specialized than a [`HashMap`](std::collections::HashMap) if you want to respect the Key Expression semantics with high performance. //! //! Enter [KeTrees](keyexpr_tree). These are data-structures specially built to store KE-value pairs in a manner that supports the set-semantics of KEs. //!