File tree 4 files changed +14
-9
lines changed
4 files changed +14
-9
lines changed Original file line number Diff line number Diff line change @@ -197,7 +197,7 @@ jobs:
197
197
runs-on : windows-latest
198
198
suffix : .exe
199
199
steps :
200
- - uses : actions/checkout@v3
200
+ - uses : actions/checkout@v4
201
201
202
202
- uses : dtolnay/rust-toolchain@master
203
203
with :
@@ -213,7 +213,7 @@ jobs:
213
213
- run : mv target/${{ matrix.target }}/release/svd2rust${{ matrix.suffix || '' }} svd2rust-${{ matrix.target }}-$(git rev-parse --short HEAD)${{ matrix.suffix || '' }}
214
214
215
215
- name : Upload artifact
216
- uses : actions/upload-artifact@v3
216
+ uses : actions/upload-artifact@v4
217
217
with :
218
218
name : artifact-svd2rust-${{ matrix.target }}
219
219
path : svd2rust-${{ matrix.target }}*
Original file line number Diff line number Diff line change 52
52
if : ${{ matrix.os == 'windows-latest' }}
53
53
run : mv target/${{ matrix.target }}/release/svd2rust${{ matrix.suffix }} svd2rust-${{ matrix.target }}${{ matrix.suffix }}
54
54
55
- - uses : actions/upload-artifact@v3
55
+ - uses : actions/upload-artifact@v4
56
56
with :
57
57
name : svd2rust-${{ matrix.target }}
58
58
path : svd2rust-${{ matrix.target }}${{ matrix.suffix }}
63
63
needs : [build]
64
64
steps :
65
65
- uses : actions/checkout@v4
66
- - uses : actions/download-artifact@v3
66
+ - uses : actions/download-artifact@v4
67
67
with :
68
68
path : artifacts
69
69
- run : ls -R ./artifacts
76
76
with :
77
77
version : ${{ (github.ref_type == 'tag' && github.ref_name) || 'Unreleased' }}
78
78
79
- - uses : softprops/action-gh-release@v1
79
+ - uses : softprops/action-gh-release@v2
80
80
with :
81
81
tag_name : ${{ steps.changelog-reader.outputs.version }}
82
82
name : ${{ (github.ref_type == 'tag' && steps.changelog-reader.outputs.version) || format('Prereleased {0}', env.CURRENT_DATE) }}
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 "derivedFrom"
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