From 37696f8e55c421a139028d508db644a876ccbdde Mon Sep 17 00:00:00 2001 From: MartinFillon Date: Mon, 4 Nov 2024 22:27:13 +0100 Subject: [PATCH] mise en applique des suggestions faites sur ma fusio-demande --- rouille_proc_macro/src/lib.rs | 23 +++++++++++++++++------ 1 file changed, 17 insertions(+), 6 deletions(-) diff --git a/rouille_proc_macro/src/lib.rs b/rouille_proc_macro/src/lib.rs index e10f517..bfdac6f 100644 --- a/rouille_proc_macro/src/lib.rs +++ b/rouille_proc_macro/src/lib.rs @@ -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", @@ -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, };