diff options
| author | 魏曹先生 <1992414357@qq.com> | 2026-06-18 04:03:58 +0800 |
|---|---|---|
| committer | 魏曹先生 <1992414357@qq.com> | 2026-06-18 04:03:58 +0800 |
| commit | f87d151447ba1c983877577090ea9058151f909d (patch) | |
| tree | 476838d5a183efb05f2987ed4d075fb04fa5fad0 /shakehand/src | |
| parent | f905fe02d2c0355256102676d47f6fdbb845104a (diff) | |
feat(shakehand): add sub-module locale support
Include `use super::*` in generated sub-modules to allow access to
imported locale traits. Add locale files and tests for the sub-module in
shakehand-test.
Diffstat (limited to 'shakehand/src')
| -rw-r--r-- | shakehand/src/shakehand.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/shakehand/src/shakehand.rs b/shakehand/src/shakehand.rs index 8f614cc..83678b4 100644 --- a/shakehand/src/shakehand.rs +++ b/shakehand/src/shakehand.rs @@ -726,6 +726,7 @@ pub fn generate_module( quote! { pub mod #mod_ident { + use super::*; #(#sub_structs)* } } |
