Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: update to Rust 1.83 #160

Merged
merged 2 commits into from
Dec 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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