Skip to content

Commit

Permalink
Merge pull request #429 from cailloumajor/renovate/rust-1.x
Browse files Browse the repository at this point in the history
fix(deps): update rust docker tag to v1.77.2
  • Loading branch information
cailloumajor authored Apr 25, 2024
2 parents db9499a + fb1544f commit 59ffe25
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM rust:1.73.0-bullseye
FROM rust:1.77.2-bullseye

RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \
# Remove imagemagick due to https://security-tracker.debian.org/tracker/CVE-2019-10131
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

FROM --platform=$BUILDPLATFORM tonistiigi/xx:1.3.0 AS xx

FROM --platform=$BUILDPLATFORM rust:1.73.0-bullseye AS builder
FROM --platform=$BUILDPLATFORM rust:1.77.2-bullseye AS builder

COPY --from=xx / /

Expand Down
2 changes: 1 addition & 1 deletion src/opcua/namespaces.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ where
error!(kind = "reading nodes", %err);
})?
};
let data_value = read_results.get(0).ok_or_else(|| {
let data_value = read_results.first().ok_or_else(|| {
error!(kind = "missing namespace array");
})?;
let result_variant = data_value.value.as_ref().ok_or_else(|| {
Expand Down
2 changes: 1 addition & 1 deletion src/opcua/session_manager.rs
Original file line number Diff line number Diff line change
Expand Up @@ -219,8 +219,8 @@ impl SessionManager {
};
expected_sessions
.iter()
.filter(|&config| !session_tasks.contains_key(config))
.cloned()
.filter(|config| !session_tasks.contains_key(config))
.collect::<Vec<_>>()
};
let start_tasks_iter = to_start.into_iter().map(|session_config| {
Expand Down
4 changes: 2 additions & 2 deletions src/opcua/subscription.rs
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ where
let data_change_callback = DataChangeCallback::new(move |monitored_items| {
let _entered = info_span!("health_value_change_handler", %partner_id).entered();
let Some(Variant::DateTime(server_time)) = monitored_items
.get(0)
.first()
.and_then(|item| item.last_value().value.as_ref())
else {
error!(?monitored_items, err = "unexpected monitored items");
Expand Down Expand Up @@ -191,7 +191,7 @@ where
};

let status_code = results
.get(0)
.first()
.map(|result| result.status_code)
.ok_or_else(|| {
error!(kind = "misssing result for monitored item creation");
Expand Down

0 comments on commit 59ffe25

Please sign in to comment.