diff options
| author | Miquel Sabaté Solà <mssola@mssola.com> | 2026-04-24 15:04:10 +0200 |
|---|---|---|
| committer | Miquel Sabaté Solà <mssola@mssola.com> | 2026-04-24 15:04:10 +0200 |
| commit | 11790d769b9dc651f3218bdfe40da59c7c9d400e (patch) | |
| tree | f9d5182d17fac871a9f7efa92c94053e49e48e87 /lib/xixanta/src/cfg.rs | |
| parent | d95c68d8913d3ac434d86a681d215bd0da230b44 (diff) | |
| download | tools.nes-11790d769b9dc651f3218bdfe40da59c7c9d400e.tar.gz tools.nes-11790d769b9dc651f3218bdfe40da59c7c9d400e.zip | |
Update the code style to the latest stable Rust
This mostly involves applying the collapsible_match rule[1] where
appropiate, and using sort_by_key() as pointed out by the latest stable
version of clippy.
[1] https://rust-lang.github.io/rust-clippy/rust-1.95.0/index.html#collapsible_match
Signed-off-by: Miquel Sabaté Solà <mssola@mssola.com>
Diffstat (limited to 'lib/xixanta/src/cfg.rs')
| -rw-r--r-- | lib/xixanta/src/cfg.rs | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/xixanta/src/cfg.rs b/lib/xixanta/src/cfg.rs index 66d2a28..57781f2 100644 --- a/lib/xixanta/src/cfg.rs +++ b/lib/xixanta/src/cfg.rs @@ -104,11 +104,10 @@ fn fetch_memory_definition(line: &str, line_num: usize) -> Result<RawMapping, St match key.trim() { "file" => res.ignore = val != "%O", - "fill" => { - if res.fill.is_none() { + "fill" + if res.fill.is_none() => { res.fill = Some(String::from("")); } - } "fillval" => res.fill = Some(val.to_string()), "start" => res.start = val.to_string(), "size" => res.size = val.to_string(), |
