File tree 3 files changed +10
-1
lines changed
3 files changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -5,6 +5,8 @@ This changelog tracks the Rust `svdtools` project. See
5
5
6
6
## [ Unreleased]
7
7
8
+ * Sugar for simple ` _split ` and ` _merge `
9
+
8
10
## [ v0.3.18] 2024-08-10
9
11
10
12
* Replace ` yaml-rust ` with ` yaml-rust2 ` . Check for duplicate keys and other YAML parse errors
Original file line number Diff line number Diff line change @@ -255,7 +255,6 @@ _rebase:
255
255
ARRAY* :
256
256
name : NEW_NAME%s
257
257
_modify :
258
- FIELD : [MINIMUM, MAXIMUM]
259
258
FIELD :
260
259
description : NEWDESC
261
260
OTHER_ARRAY* : {}
Original file line number Diff line number Diff line change @@ -203,6 +203,10 @@ impl RegisterExt for Register {
203
203
. with_context ( || format ! ( "Merging fields matched to `{fspec}`" ) ) ?;
204
204
}
205
205
}
206
+ Some ( Yaml :: String ( fspec) ) => {
207
+ self . merge_fields ( fspec, None , & rpath)
208
+ . with_context ( || format ! ( "Merging fields matched to `{fspec}`" ) ) ?;
209
+ }
206
210
_ => { }
207
211
}
208
212
@@ -222,6 +226,10 @@ impl RegisterExt for Register {
222
226
. with_context ( || format ! ( "Splitting fields matched to `{fspec}`" ) ) ?;
223
227
}
224
228
}
229
+ Some ( Yaml :: String ( fspec) ) => {
230
+ self . split_fields ( fspec, & Hash :: new ( ) , & rpath)
231
+ . with_context ( || format ! ( "Splitting fields matched to `{fspec}`" ) ) ?;
232
+ }
225
233
_ => { }
226
234
}
227
235
You can’t perform that action at this time.
0 commit comments