Skip to content

Commit 8f6d100

Browse files
clippy fixes
1 parent adec85f commit 8f6d100

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/config.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -259,10 +259,10 @@ fn parse_source_config(source: &str, parent: &Path) -> Result<Vec<Scratchpad>> {
259259
let parent = path.parent().unwrap_log(file!(), line!());
260260

261261
let (_, scratchpads) = parse_config(&config, parent)?;
262-
return Ok(scratchpads);
262+
Ok(scratchpads)
263263
} else {
264264
let _ = log(format!("Source file not found: {source}"), Warn);
265-
return Ok(vec![]);
265+
Ok(vec![])
266266
}
267267
}
268268

@@ -521,10 +521,12 @@ mod tests {
521521
Path::new("./test_configs"),
522522
)
523523
.unwrap();
524+
524525
let mut expected_scratchpads = expected_scratchpads();
525526
for sc in expected_scratchpads.iter_mut() {
526527
sc.name = sc.title.clone();
527528
}
529+
528530
assert_eq!(scratchpads, expected_scratchpads);
529531
}
530532

0 commit comments

Comments
 (0)