File tree 2 files changed +9
-4
lines changed
2 files changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/).
7
7
8
8
## [ Unreleased]
9
9
10
+ - Fix reexport path when "%s" inside "dirivedFrom"
10
11
- Force using rust edition 2021 in CI
11
12
- Added lifetime ellision for ` FieldWriter ` where the explicit lifetimes are not necessary, which
12
13
fixes the ` clippy::needless_lifetimes ` warning on rustc 1.84
Original file line number Diff line number Diff line change @@ -295,14 +295,18 @@ pub fn block_path_to_ty(
295
295
) -> TypePath {
296
296
let mut path = config. settings . crate_path . clone ( ) . unwrap_or_default ( ) . 0 ;
297
297
path. segments . push ( path_segment ( ident (
298
- & bpath. peripheral ,
298
+ & bpath. peripheral . remove_dim ( ) ,
299
299
config,
300
300
"peripheral_mod" ,
301
301
span,
302
302
) ) ) ;
303
303
for ps in & bpath. path {
304
- path. segments
305
- . push ( path_segment ( ident ( ps, config, "cluster_mod" , span) ) ) ;
304
+ path. segments . push ( path_segment ( ident (
305
+ & ps. remove_dim ( ) ,
306
+ config,
307
+ "cluster_mod" ,
308
+ span,
309
+ ) ) ) ;
306
310
}
307
311
TypePath { qself : None , path }
308
312
}
@@ -314,7 +318,7 @@ pub fn register_path_to_ty(
314
318
) -> TypePath {
315
319
let mut p = block_path_to_ty ( & rpath. block , config, span) ;
316
320
p. path . segments . push ( path_segment ( ident (
317
- & rpath. name ,
321
+ & rpath. name . remove_dim ( ) ,
318
322
config,
319
323
"register_mod" ,
320
324
span,
You can’t perform that action at this time.
0 commit comments