Skip to content

Commit

Permalink
Upgrades rustc in CI and Docker to 1.75
Browse files Browse the repository at this point in the history
  • Loading branch information
Tarik Eshaq committed Feb 8, 2024
1 parent 8ff1b63 commit f87293c
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 10 deletions.
8 changes: 4 additions & 4 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ commands:
jobs:
checks:
docker:
- image: cimg/rust:1.72.0
- image: cimg/rust:1.75.0
auth:
username: $DOCKER_USER
password: $DOCKER_PASS
Expand All @@ -178,7 +178,7 @@ jobs:

build-and-test:
docker:
- image: cimg/rust:1.72.0
- image: cimg/rust:1.75.0
auth:
username: $DOCKER_USER
password: $DOCKER_PASS
Expand Down Expand Up @@ -214,7 +214,7 @@ jobs:
#- save-sccache-cache
build-mysql-image:
docker:
- image: cimg/rust:1.60.0
- image: cimg/rust:1.75.0
auth:
username: $DOCKER_USER
password: $DOCKER_PASS
Expand Down Expand Up @@ -245,7 +245,7 @@ jobs:

build-spanner-image:
docker:
- image: cimg/rust:1.60.0
- image: cimg/rust:1.75.0
auth:
username: $DOCKER_USER
password: $DOCKER_PASS
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# NOTE: Ensure builder's Rust version matches CI's in .circleci/config.yml
FROM docker.io/lukemathwalker/cargo-chef:0.1.62-rust-1.72-bullseye as chef
FROM docker.io/lukemathwalker/cargo-chef:0.1.62-rust-1.75-bullseye as chef
WORKDIR /app

FROM chef AS planner
Expand Down
2 changes: 1 addition & 1 deletion syncserver/src/server/test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ fn create_request(
"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:72.0) Gecko/20100101 Firefox/72.0",
));
if let Some(body) = payload {
req = req.set_json(&body);
req = req.set_json(body);
};
if let Some(h) = headers {
for (k, v) in h {
Expand Down
5 changes: 1 addition & 4 deletions syncstorage-spanner/src/models.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1842,10 +1842,7 @@ impl SpannerDb {
sqlparam_types.insert("payload".to_owned(), payload.spanner_type());
sqlparams.insert("payload".to_string(), payload.into_spanner_value());
let now_millis = timestamp.as_i64();
let ttl = bso.ttl.map_or(i64::from(DEFAULT_BSO_TTL), |ttl| {
ttl.try_into()
.expect("Could not get ttl in put_bso_async_test")
}) * 1000;
let ttl = bso.ttl.map_or(i64::from(DEFAULT_BSO_TTL), |ttl| ttl.into()) * 1000;
let expirystring = to_rfc3339(now_millis + ttl)?;
debug!(
"!!!!! [test] INSERT expirystring:{:?}, timestamp:{:?}, ttl:{:?}",
Expand Down

0 comments on commit f87293c

Please sign in to comment.