Skip to content

Commit

Permalink
New clippy warnings.
Browse files Browse the repository at this point in the history
Don't want CI to fail on stricter professional setups, so commit these
changes to use unwrap_or_default.

To downstream, don't worry, it is not a security release.

Incentives are funny things, aren't they?  In the push to safe
languages, a nice flywheel is set in motion to build a future ontology
and corresponding custodian roles for security release tags and
release subscription models.

Golden Rule: hopefully it is a fun set of projects.
  • Loading branch information
jgerrish committed Nov 5, 2024
1 parent 84a9378 commit 4adddf6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "image-rider"
version = "0.7.2"
version = "0.7.3"
edition = "2021"
authors = ["Joshua Gerrish <jgerrish@gmail.com>"]
description = "Disk image and ROM image parser"
Expand Down
5 changes: 1 addition & 4 deletions src/disk_format/apple/catalog.rs
Original file line number Diff line number Diff line change
Expand Up @@ -786,10 +786,7 @@ pub fn build_files<'a>(
let track_sector_lists = file_entry.build_file(tracks)?;
debug!("Building file: {}", file_entry.filename().unwrap());
let res = file_entry.get_data(tracks, &track_sector_lists);
let data = match res {
Err(_e) => Vec::new(),
Ok(data) => data,
};
let data = res.unwrap_or_default();

files.insert(
file_entry.filename().unwrap(),
Expand Down

0 comments on commit 4adddf6

Please sign in to comment.