[lang/macro] resolve some code dupes

15 jobs for robin-avoid-heap-for-dispatch in 6 minutes and 53 seconds (queued for 4 seconds)
latest
Status Job ID Name Coverage
  Check
passed #557796
linux-docker
check-std

00:00:48

passed #557797
linux-docker
check-wasm

00:00:48

 
  Workspace
passed #557798
linux-docker
build-std

00:01:05

passed #557799
linux-docker
build-wasm

00:03:17

passed #557802
linux-docker
clippy-std

00:00:51

passed #557803
linux-docker
clippy-wasm

00:01:39

passed #557801
linux-docker
codecov

00:02:42

passed #557804
linux-docker
fmt

00:00:43

passed #557800
linux-docker
test

00:01:14

 
  Examples
passed #557807
linux-docker
examples-clippy-std

00:00:44

passed #557808
linux-docker
examples-clippy-wasm

00:01:09

passed #557809
linux-docker
examples-contract-build

00:01:10

passed #557806
linux-docker
examples-fmt

00:00:16

passed #557810
linux-docker
examples-generate-metadata

00:02:45

passed #557805
linux-docker
examples-test

00:01:32