We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e5594ba commit 882021bCopy full SHA for 882021b
ci/svd2rust-regress/src/diff.rs
@@ -257,8 +257,8 @@ impl Diffing {
257
Ok([baseline, current])
258
}
259
260
- fn get_source_and_command<'s>(&'s self) -> [Option<(Source<'s>, Command<'s>)>; 2] {
261
- let split = |s: &'s str| -> (Source, Command) {
+ fn get_source_and_command(&self) -> [Option<(Source, Command)>; 2] {
+ fn split(s: &str) -> (Source, Command) {
262
if let Some(s) = s.strip_prefix('@') {
263
if let Some((source, cmd)) = s.split_once(' ') {
264
(Some(source), Some(cmd.trim()))
@@ -268,7 +268,7 @@ impl Diffing {
268
} else {
269
(None, Some(s.trim()))
270
271
- };
+ }
272
273
let baseline = self.baseline.as_deref().map(split);
274
0 commit comments