From 11790d769b9dc651f3218bdfe40da59c7c9d400e Mon Sep 17 00:00:00 2001 From: Miquel Sabaté Solà Date: Fri, 24 Apr 2026 15:04:10 +0200 Subject: Update the code style to the latest stable Rust MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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à --- lib/xixanta/src/cfg.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'lib/xixanta/src/cfg.rs') 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 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(), -- cgit v1.2.3