Skip to content

Commit c17a387

Browse files
committed
Fix latest Clippy warnings
1 parent 7c3bc50 commit c17a387

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

src/communication/in_memory_rpc_server.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -318,7 +318,7 @@ mod tests {
318318
sink_filter: &Option<&UUri>,
319319
_listener: &Arc<dyn UListener>| {
320320
source_filter == &expected_source_filter
321-
&& sink_filter.map_or(false, |uri| uri.resource_id == resource_id as u32)
321+
&& sink_filter.is_some_and(|uri| uri.resource_id == resource_id as u32)
322322
};
323323
transport
324324
.expect_do_register_listener()

src/umessage/umessagebuilder.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ impl UMessageBuilder {
146146
/// * `method_to_invoke` - The URI identifying the method to invoke.
147147
/// * `reply_to_address` - The URI that the sender of the request expects the response message at.
148148
/// * `ttl` - The number of milliseconds after which the request should no longer be processed
149-
/// by the target service. The value is capped at [`i32::MAX`].
149+
/// by the target service. The value is capped at [`i32::MAX`].
150150
///
151151
/// # Examples
152152
///
@@ -191,7 +191,7 @@ impl UMessageBuilder {
191191
/// * `reply_to_address` - The URI that the sender of the request expects to receive the response message at.
192192
/// * `request_id` - The identifier of the request that this is the response to.
193193
/// * `invoked_method` - The URI identifying the method that has been invoked and which the created message is
194-
/// the outcome of.
194+
/// the outcome of.
195195
///
196196
/// # Examples
197197
///
@@ -240,8 +240,8 @@ impl UMessageBuilder {
240240
///
241241
/// # Arguments
242242
///
243-
/// * `request_attributes` - The attributes from the request message. The response message builder will be initialized
244-
/// with the corresponding attribute values.
243+
/// * `request_attributes` - The attributes from the request message. The response message
244+
/// builder will be initialized with the corresponding attribute values.
245245
///
246246
/// # Examples
247247
///

src/uri.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ impl From<&UUri> for String {
7070
/// # Arguments
7171
///
7272
/// * `uri` - The URI to serialize. Note that the given URI is **not** validated before serialization.
73-
/// In particular, the URI's version and resource ID length are not checked to be within limits.
73+
/// In particular, the URI's version and resource ID length are not checked to be within limits.
7474
///
7575
/// # Returns
7676
///

src/utransport.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ impl TryFrom<&UUri> for StaticUriProvider {
101101
/// # Arguments
102102
///
103103
/// * `source_uri` - The UUri to take the entity's authority, entity ID and version information from.
104-
/// The UUri's resource ID is ignored.
104+
/// The UUri's resource ID is ignored.
105105
///
106106
/// # Errors
107107
///

0 commit comments

Comments
 (0)