Skip to content

Commit

Permalink
feat: update to Rust 1.83 (#160)
Browse files Browse the repository at this point in the history
* feat: update to Rust 1.83

* fix: alpine image
  • Loading branch information
GuillaumeDecMeetsMore authored Dec 4, 2024
1 parent 01dad30 commit 5cdee2d
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 5 deletions.
9 changes: 9 additions & 0 deletions alpine.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,15 @@ FROM messense/rust-musl-cross:${ARCH}-musl AS builder

ARG ARCH=x86_64
ARG APP_NAME=nittei
ARG RUST_VERSION=1.83.0
# Install and set the specific Rust version
RUN rustup install ${RUST_VERSION} && rustup default ${RUST_VERSION}

# Install the musl target for the correct architecture
RUN rustup target add ${ARCH}-unknown-linux-musl

# Verify the Rust and target setup
RUN rustc --version && rustup show

# Copy source code from previous stage
COPY . .
Expand Down
2 changes: 1 addition & 1 deletion crates/api/src/event/sync_event_reminders.rs
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ async fn create_event_reminders(
}

#[async_trait::async_trait(?Send)]
impl<'a> UseCase for SyncEventRemindersUseCase<'a> {
impl UseCase for SyncEventRemindersUseCase<'_> {
type Response = ();

type Error = UseCaseError;
Expand Down
2 changes: 1 addition & 1 deletion crates/api_structs/src/helpers/deserialize_uuids_list.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ where
{
struct StringVecVisitor;

impl<'de> de::Visitor<'de> for StringVecVisitor {
impl de::Visitor<'_> for StringVecVisitor {
type Value = Option<Vec<ID>>;

fn expecting(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
Expand Down
2 changes: 1 addition & 1 deletion crates/domain/src/shared/entity.rs
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ impl<'de> Deserialize<'de> for ID {
{
struct IDVisitor;

impl<'de> Visitor<'de> for IDVisitor {
impl Visitor<'_> for IDVisitor {
type Value = ID;

fn expecting(&self, formatter: &mut std::fmt::Formatter) -> std::fmt::Result {
Expand Down
2 changes: 1 addition & 1 deletion crates/domain/src/shared/recurrence.rs
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,7 @@ impl<'de> Deserialize<'de> for WeekDayRecurrence {
{
struct WeekDayVisitor;

impl<'de> Visitor<'de> for WeekDayVisitor {
impl Visitor<'_> for WeekDayVisitor {
type Value = WeekDayRecurrence;

fn expecting(&self, formatter: &mut std::fmt::Formatter) -> std::fmt::Result {
Expand Down
2 changes: 1 addition & 1 deletion debian.Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
ARG RUST_VERSION=1.80.1
ARG RUST_VERSION=1.83.0
ARG APP_NAME=nittei

FROM rust:${RUST_VERSION}-slim AS builder
Expand Down

0 comments on commit 5cdee2d

Please sign in to comment.