diff options
| author | HampusM <hampus@hampusmat.com> | 2023-08-02 18:54:41 +0200 | 
|---|---|---|
| committer | HampusM <hampus@hampusmat.com> | 2023-08-02 18:54:41 +0200 | 
| commit | 221b07a16177e4780951c256b1f9d349a1146d1f (patch) | |
| tree | 7e66cc2030bae23f4e6b932194bba805b59f2c1f /macros/src | |
| parent | d6c0d2ba2dca9d234c5d879af364317a23370e67 (diff) | |
test: clean up create_caster_fn_ident unit test
Diffstat (limited to 'macros/src')
| -rw-r--r-- | macros/src/caster.rs | 7 | 
1 files changed, 2 insertions, 5 deletions
| diff --git a/macros/src/caster.rs b/macros/src/caster.rs index b84bd4d..c36aa1f 100644 --- a/macros/src/caster.rs +++ b/macros/src/caster.rs @@ -124,7 +124,6 @@ impl IUuid for Uuid  mod tests  {      use pretty_assertions::assert_eq; -    use utility_macros::repeat_char;      use super::*; @@ -136,15 +135,13 @@ mod tests          uuid_mock              .expect_encode_simple_lower_into()              .return_once(|buf| { -                for index in 0..(FN_BUF_LEN - 2) { -                    buf[index] = b'f'; -                } +                buf[..FN_BUF_LEN - 2].fill(b'f');              })              .once();          assert_eq!(              create_caster_fn_ident(uuid_mock), -            format_ident!(concat!("__", repeat_char!('f', 32))) +            format_ident!("__{}", "f".repeat(FN_BUF_LEN - 2))          );      }  } | 
