Skip to content

Commit

Permalink
mise en applique des suggestions faites sur ma fusio-demande
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinFillon committed Nov 4, 2024
1 parent 9b0f9bb commit 37696f8
Showing 1 changed file with 17 additions and 6 deletions.
23 changes: 17 additions & 6 deletions rouille_proc_macro/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -98,15 +98,12 @@ rouille_compilogenese::rouille! {
"octets" => "bytes",
"chaîne" => "str",
"lire_exactement" => "read_exact",
"lire_jusqu'à" => "read_until",
"sépare" => "split",
"en_tant_que" => "as",
"Entier" => "Integer",
"ensuite" => "then",
"ensuite_quelque" => "then_some",
"déballer_ou" => "unwrap_or",
"déballer_ou_avec" => "unwrap_or_else",
"en" => "into",
"depuis_chaîne" => "from_str",
"Depuis" => "From",
"bien" => "ok",
Expand All @@ -128,13 +125,27 @@ rouille_compilogenese::rouille! {
"compter" => "count",
"trouve" => "find",
"trouve_en_appliquant" => "find_map",
"tous" => "all",
"certains" => "any",
"récuperer" => "collect",
"tous" | "toutes" => "all",
"certains" | "certaines" => "any",
"récupérer" => "collect",
"copié" => "copied",
"cloné" => "cloned",
"Copiable" => "Copy",
"Clonable" => "Clone",
"processus" => "process",
"interpète" => "parse",
"taille_non_sigée" => "usize",
"taille_sigée" => "isize",
"entier_non_sigé_8" => "u8",
"entier_non_sigé_32" => "u32",
"entier_non_sigé_64" => "u64",
"entier_sigé_8" => "i8",
"entier_sigé_32" => "i32",
"entier_sigé_64" => "i64",
"flottant_32" => "f32",
"flottant_64" => "f64",
"caractère" => "char",
"bibliothèque_standard" => "std",
_ => &identifiant_chaîne,
};

Expand Down

0 comments on commit 37696f8

Please sign in to comment.