chore: satisfy clippy

This commit is contained in:
2022-09-12 07:06:09 -03:00
parent 77af5453f0
commit 756c806c2a
3 changed files with 10 additions and 11 deletions

View File

@@ -64,8 +64,7 @@ pub fn rom_title(cpu: &Cpu) -> &str {
cpu.bus
.cart
.as_ref()
.map(|c| c.title.as_deref())
.flatten()
.and_then(|c| c.title.as_deref())
.unwrap_or(DEFAULT_TITLE)
}