Skip to content

Commit

Permalink
Clippy lints for 1.84
Browse files Browse the repository at this point in the history
  • Loading branch information
einarmo committed Jan 22, 2025
1 parent 15bb220 commit 6633616
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 17 deletions.
6 changes: 3 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ log/
**/pki-client
**/pki-server
3rd-party/open62541/build/
lib/pki*
lib/certs
async-opcua/pki*
async-opcua/certs

**/bin
**/obj
**/pki-ext-client
**/pki-ext-client
2 changes: 1 addition & 1 deletion async-opcua-client/src/session/services/session.rs
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ impl<'a> CreateSession<'a> {
}
}

impl<'b> UARequest for CreateSession<'b> {
impl UARequest for CreateSession<'_> {
type Out = CreateSessionResponse;

async fn send<'a>(self, channel: &'a crate::AsyncSecureChannel) -> Result<Self::Out, StatusCode>
Expand Down
18 changes: 9 additions & 9 deletions async-opcua-client/src/session/services/subscriptions/service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ impl<'a> CreateSubscription<'a> {
}
}

impl<'b> UARequest for CreateSubscription<'b> {
impl UARequest for CreateSubscription<'_> {
type Out = CreateSubscriptionResponse;

async fn send<'a>(self, channel: &'a crate::AsyncSecureChannel) -> Result<Self::Out, StatusCode>
Expand Down Expand Up @@ -298,7 +298,7 @@ impl<'a> ModifySubscription<'a> {
}
}

impl<'b> UARequest for ModifySubscription<'b> {
impl UARequest for ModifySubscription<'_> {
type Out = ModifySubscriptionResponse;

async fn send<'a>(self, channel: &'a crate::AsyncSecureChannel) -> Result<Self::Out, StatusCode>
Expand Down Expand Up @@ -404,7 +404,7 @@ impl<'a> SetPublishingMode<'a> {
}
}

impl<'b> UARequest for SetPublishingMode<'b> {
impl UARequest for SetPublishingMode<'_> {
type Out = SetPublishingModeResponse;

async fn send<'a>(self, channel: &'a crate::AsyncSecureChannel) -> Result<Self::Out, StatusCode>
Expand Down Expand Up @@ -620,7 +620,7 @@ impl<'a> DeleteSubscriptions<'a> {
}
}

impl<'b> UARequest for DeleteSubscriptions<'b> {
impl UARequest for DeleteSubscriptions<'_> {
type Out = DeleteSubscriptionsResponse;

async fn send<'a>(self, channel: &'a crate::AsyncSecureChannel) -> Result<Self::Out, StatusCode>
Expand Down Expand Up @@ -743,7 +743,7 @@ impl<'a> CreateMonitoredItems<'a> {
}
}

impl<'b> UARequest for CreateMonitoredItems<'b> {
impl UARequest for CreateMonitoredItems<'_> {
type Out = CreateMonitoredItemsResponse;

async fn send<'a>(
Expand Down Expand Up @@ -913,7 +913,7 @@ impl<'a> ModifyMonitoredItems<'a> {
}
}

impl<'b> UARequest for ModifyMonitoredItems<'b> {
impl UARequest for ModifyMonitoredItems<'_> {
type Out = ModifyMonitoredItemsResponse;

async fn send<'a>(self, channel: &'a crate::AsyncSecureChannel) -> Result<Self::Out, StatusCode>
Expand Down Expand Up @@ -1061,7 +1061,7 @@ impl<'a> SetMonitoringMode<'a> {
}
}

impl<'b> UARequest for SetMonitoringMode<'b> {
impl UARequest for SetMonitoringMode<'_> {
type Out = SetMonitoringModeResponse;

async fn send<'a>(self, channel: &'a crate::AsyncSecureChannel) -> Result<Self::Out, StatusCode>
Expand Down Expand Up @@ -1215,7 +1215,7 @@ impl<'a> SetTriggering<'a> {
}
}

impl<'b> UARequest for SetTriggering<'b> {
impl UARequest for SetTriggering<'_> {
type Out = SetTriggeringResponse;

async fn send<'a>(self, channel: &'a crate::AsyncSecureChannel) -> Result<Self::Out, StatusCode>
Expand Down Expand Up @@ -1370,7 +1370,7 @@ impl<'a> DeleteMonitoredItems<'a> {
}
}

impl<'b> UARequest for DeleteMonitoredItems<'b> {
impl UARequest for DeleteMonitoredItems<'_> {
type Out = DeleteMonitoredItemsResponse;

async fn send<'a>(self, channel: &'a crate::AsyncSecureChannel) -> Result<Self::Out, StatusCode>
Expand Down
4 changes: 2 additions & 2 deletions async-opcua-server/src/node_manager/view.rs
Original file line number Diff line number Diff line change
Expand Up @@ -735,10 +735,10 @@ impl RegisterNodeItem {
/// without a complex implementation.
///
/// Arguments are simply the inputs to translate_browse_paths on `NodeManager`.
pub async fn impl_translate_browse_paths_using_browse<'a>(
pub async fn impl_translate_browse_paths_using_browse(
mgr: &(impl NodeManager + Send + Sync + 'static),
context: &RequestContext,
nodes: &mut [&mut BrowsePathItem<'a>],
nodes: &mut [&mut BrowsePathItem<'_>],
) -> Result<(), StatusCode> {
// For unmatched browse names we first need to check if the node exists.
let mut to_get_metadata: Vec<_> = nodes
Expand Down
3 changes: 1 addition & 2 deletions async-opcua/tests/integration/browse.rs
Original file line number Diff line number Diff line change
Expand Up @@ -613,8 +613,7 @@ async fn test_recursive_browser() {

assert!(rs
.iter()
.find(|r| *r.target_node == VariableId::BaseEventType_EventId)
.is_some());
.any(|r| *r.target_node == VariableId::BaseEventType_EventId));
}

// Test that the future returned by `browser.run...` is `Send`
Expand Down

0 comments on commit 6633616

Please sign in to comment.