Skip to content

Commit 1e70fd4

Browse files
committed
normalize paths
1 parent c94dc77 commit 1e70fd4

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/).
77

88
## [Unreleased]
99

10+
- Fix reexport path when "%s" inside "dirivedFrom"
1011
- Force using rust edition 2021 in CI
1112
- Added lifetime ellision for `FieldWriter` where the explicit lifetimes are not necessary, which
1213
fixes the `clippy::needless_lifetimes` warning on rustc 1.84

src/util.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -295,14 +295,14 @@ pub fn block_path_to_ty(
295295
) -> TypePath {
296296
let mut path = config.settings.crate_path.clone().unwrap_or_default().0;
297297
path.segments.push(path_segment(ident(
298-
&bpath.peripheral,
298+
&bpath.peripheral.remove_dim(),
299299
config,
300300
"peripheral_mod",
301301
span,
302302
)));
303303
for ps in &bpath.path {
304304
path.segments
305-
.push(path_segment(ident(ps, config, "cluster_mod", span)));
305+
.push(path_segment(ident(&ps.remove_dim(), config, "cluster_mod", span)));
306306
}
307307
TypePath { qself: None, path }
308308
}
@@ -314,7 +314,7 @@ pub fn register_path_to_ty(
314314
) -> TypePath {
315315
let mut p = block_path_to_ty(&rpath.block, config, span);
316316
p.path.segments.push(path_segment(ident(
317-
&rpath.name,
317+
&rpath.name.remove_dim(),
318318
config,
319319
"register_mod",
320320
span,

0 commit comments

Comments
 (0)