Skip to content

Commit 882021b

Browse files
committed
code review change
1 parent e5594ba commit 882021b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

ci/svd2rust-regress/src/diff.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -257,8 +257,8 @@ impl Diffing {
257257
Ok([baseline, current])
258258
}
259259

260-
fn get_source_and_command<'s>(&'s self) -> [Option<(Source<'s>, Command<'s>)>; 2] {
261-
let split = |s: &'s str| -> (Source, Command) {
260+
fn get_source_and_command(&self) -> [Option<(Source, Command)>; 2] {
261+
fn split(s: &str) -> (Source, Command) {
262262
if let Some(s) = s.strip_prefix('@') {
263263
if let Some((source, cmd)) = s.split_once(' ') {
264264
(Some(source), Some(cmd.trim()))
@@ -268,7 +268,7 @@ impl Diffing {
268268
} else {
269269
(None, Some(s.trim()))
270270
}
271-
};
271+
}
272272

273273
let baseline = self.baseline.as_deref().map(split);
274274

0 commit comments

Comments
 (0)