Skip to content

Commit b43d8d7

Browse files
RUSTSEC-2024-0436 - replace paste with pastey (#1834)
Co-authored-by: Arthur <48595927+ArthurZucker@users.noreply.github.com>
1 parent 7c01a4f commit b43d8d7

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

tokenizers/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ derive_builder = "0.20"
5959
spm_precompiled = "0.1.3"
6060
hf-hub = { version = "0.4.1", features = ["ureq"], default-features = false, optional = true }
6161
aho-corasick = "1.1"
62-
paste = "1.0.14"
62+
pastey = "0.1.0"
6363
macro_rules_attribute = "0.2.0"
6464
thiserror = "2"
6565
fancy-regex = { version = "0.14", optional = true}

tokenizers/src/utils/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ macro_rules! impl_serde_type{
133133
),*$(,)+
134134
}
135135
) => {
136-
paste::paste!{
136+
pastey::paste!{
137137
$(#[$meta])*
138138
#[derive(Serialize, Deserialize)]
139139
#[serde(tag = "type", from = $struct_name "Deserializer")]
@@ -182,7 +182,7 @@ macro_rules! impl_serde_type{
182182
$(#[$meta:meta])*
183183
$vis:vis struct $struct_name:ident;
184184
) => {
185-
paste::paste!{
185+
pastey::paste!{
186186
$(#[$meta])*
187187
$vis struct $struct_name;
188188

0 commit comments

Comments
 (0)