Skip to content

Commit 5ea8dfd

Browse files
committed
bump deps
1 parent 0fe643b commit 5ea8dfd

File tree

4 files changed

+19
-21
lines changed

4 files changed

+19
-21
lines changed

Cargo.toml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@ members = [".", "macros"]
44
[package]
55
name = "medici-shared"
66
version = "0.1.0"
7-
edition = "2021"
8-
rust-version = "1.87"
7+
edition = "2024"
8+
rust-version = "1.88"
99

1010
[dependencies]
1111
anyhow = "1.0.98"
12-
async-openai = "0.28.1"
13-
aws-sdk-sesv2 = "1.80.0"
12+
async-openai = "0.29.0"
13+
aws-sdk-sesv2 = "1.85.0"
1414
blake3 = "1.8.2"
1515
chrono = { version = "0.4.41", default-features = false, features = [
1616
"std",
@@ -19,7 +19,7 @@ chrono = { version = "0.4.41", default-features = false, features = [
1919
] }
2020
medici-macros = { path = "macros" }
2121
regex = "1.11.1"
22-
rust_decimal = "1.37.1"
22+
rust_decimal = "1.37.2"
2323
serde = { version = "1.0.219", features = ["derive"] }
2424
serde_json = "1.0.140"
2525
sqlx = { version = "0.8.6", default-features = false, features = [
@@ -29,7 +29,7 @@ sqlx = { version = "0.8.6", default-features = false, features = [
2929
"derive",
3030
] }
3131
strum = { version = "0.27.1", features = ["derive"] }
32-
tokio = { version = "1.45.1", features = ["full"] }
32+
tokio = { version = "1.46.1", features = ["full"] }
3333
tracing = "0.1.41"
3434
uuid = { version = "1.17.0", features = ["std", "v4", "serde"] }
3535

@@ -40,5 +40,5 @@ fake = { version = "4.3.0", features = [
4040
"uuid",
4141
"chrono",
4242
] }
43-
proptest = "1.6.0"
43+
proptest = "1.7.0"
4444
rand = "0.9.1"

macros/Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
name = "medici-macros"
33
version = "0.0.1"
44
authors = ["Diego Stratta <diego@medici.uy>"]
5-
edition = "2021"
6-
rust-version = "1.87"
5+
edition = "2024"
6+
rust-version = "1.88"
77

88
[lib]
99
proc-macro = true
@@ -12,4 +12,4 @@ proc-macro = true
1212
darling = "0.20.11"
1313
quote = { version = "1.0.40" }
1414
proc-macro2 = "1.0.95"
15-
syn = { version = "2.0.101", features = ["full"] }
15+
syn = { version = "2.0.104", features = ["full"] }

macros/src/lib.rs

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
use darling::FromDeriveInput;
22
use proc_macro2::TokenTree;
33
use quote::quote;
4-
use syn::{ext::IdentExt, parse_macro_input, Data, DeriveInput, Field, Fields, Ident, Meta, Type};
4+
use syn::{Data, DeriveInput, Field, Fields, Ident, Meta, Type, ext::IdentExt, parse_macro_input};
55

66
#[derive(FromDeriveInput, Debug)]
77
#[darling(attributes(medici))]
@@ -90,10 +90,8 @@ pub fn derive_changeset(input: proc_macro::TokenStream) -> proc_macro::TokenStre
9090
#[automatically_derived]
9191
impl ::std::cmp::PartialEq<#table_struct> for #name {
9292
fn eq(&self, other: &#table_struct) -> bool {
93-
#(if let ::std::option::Option::Some(ref value) = self.#fields {
94-
if value != &other.#fields {
95-
return false;
96-
}
93+
#(if let ::std::option::Option::Some(ref value) = self.#fields && value != &other.#fields {
94+
return false;
9795
})*
9896

9997
true

src/sync/icon_data.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
use anyhow::{bail, Result};
1+
use anyhow::{Result, bail};
22
use rust_decimal::prelude::*;
33
use serde::{Deserialize, Serialize};
44
use std::path::PathBuf;
55

66
use super::{
7-
helpers::{format_text, full_image_path},
87
ICON_IMAGES_DIR_NAME,
8+
helpers::{format_text, full_image_path},
99
};
1010
use crate::traits::Hashable;
1111

@@ -54,10 +54,10 @@ impl IconData {
5454
}
5555

5656
fn check(&self) -> Result<()> {
57-
if let Some(price_in_uyu) = self.price_in_uyu {
58-
if price_in_uyu <= Decimal::ZERO {
59-
bail!("invalid icon price");
60-
}
57+
if let Some(price_in_uyu) = self.price_in_uyu
58+
&& price_in_uyu <= Decimal::ZERO
59+
{
60+
bail!("invalid icon price");
6161
}
6262

6363
Ok(())

0 commit comments

Comments
 (0)