Skip to content

Commit

Permalink
Upgrade to Rust 1.65 (#37)
Browse files Browse the repository at this point in the history
  • Loading branch information
bastbu authored Nov 14, 2022
1 parent f2e3f37 commit e05a4f6
Show file tree
Hide file tree
Showing 9 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT license.

ARG RUST_VERSION=1.64
ARG RUST_VERSION=1.65
FROM rust:${RUST_VERSION} AS builder

# Dockerfile for building Chariott runtime container
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile.arm64
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT license.

ARG RUST_VERSION=1.64
ARG RUST_VERSION=1.65
FROM rust:${RUST_VERSION} AS builder

# Dockerfile for building SDV Chariott container for ARM64 with
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile.valgrind
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT license.

ARG RUST_VERSION=1.64
ARG RUST_VERSION=1.65
FROM rust:${RUST_VERSION} AS builder

# Dockerfile for building SDV Chariott container
Expand Down
2 changes: 1 addition & 1 deletion examples/applications/Dockerfile.base
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT license.

ARG RUST_VERSION=1.64
ARG RUST_VERSION=1.65
FROM rust:${RUST_VERSION} AS builder

# Dockerfile for building Chariott base image
Expand Down
2 changes: 1 addition & 1 deletion examples/applications/Dockerfile.kv-app.ci
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT license.

ARG RUST_VERSION=1.64
ARG RUST_VERSION=1.65
FROM rust:${RUST_VERSION} AS builder

# Dockerfile for building SDV Chariott container
Expand Down
2 changes: 1 addition & 1 deletion examples/applications/Dockerfile.lt-provider-app.ci
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT license.

ARG RUST_VERSION=1.64
ARG RUST_VERSION=1.65
FROM rust:${RUST_VERSION} AS builder

# Dockerfile for building SDV Chariott container
Expand Down
2 changes: 1 addition & 1 deletion examples/applications/lt-consumer/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ async fn evaluate_docker_stats(
let cpu_delta =
cpu_stats.cpu_usage.total_usage - stats.precpu_stats.cpu_usage.total_usage;

if number_cpus == None {
if number_cpus.is_none() {
number_cpus = cpu_stats.cpu_usage.percpu_usage.map(|cpu| cpu.len());
}

Expand Down
2 changes: 1 addition & 1 deletion examples/applications/simulated-camera/src/camera.rs
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ impl CameraLogic {
}
}

// In 1.64 clippy checks get_first
// In 1.64 or later clippy checks get_first
// as described in this lint rule https://rust-lang.github.io/rust-clippy/master/index.html#get_first
// try_stream macro is still using accessing first element with `$crate::async_stream_impl::try_stream_inner!(($crate) $($tt)*).get(0)`
#[allow(clippy::get_first)]
Expand Down
2 changes: 1 addition & 1 deletion rust-toolchain
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.64
1.65

0 comments on commit e05a4f6

Please sign in to comment.