[chore](trx-rs): add Gitea Actions CI pipeline #2

Merged
sjg merged 8 commits from ci/gitea-actions into main 2026-07-18 12:39:58 +02:00
2 changed files with 12 additions and 20 deletions
Showing only changes of commit a2838b06a2 - Show all commits
@@ -160,8 +160,7 @@ impl CallsignHashTable {
let mut idx = start_idx; let mut idx = start_idx;
loop { loop {
match &self.entries[idx] { let entry = self.entries[idx].as_ref()?;
Some(entry) => {
let stored = (entry.hash & HASH22_MASK) >> shift; let stored = (entry.hash & HASH22_MASK) >> shift;
if stored == target { if stored == target {
return Some(entry.callsign.clone()); return Some(entry.callsign.clone());
@@ -171,9 +170,6 @@ impl CallsignHashTable {
return None; return None;
} }
} }
None => return None,
}
}
} }
/// Age all entries and remove those older than `max_age`. /// Age all entries and remove those older than `max_age`.
+2 -6
View File
@@ -64,11 +64,9 @@ pub fn charn(mut c: i32, table: CharTable) -> char {
return EXTRAS[c as usize]; return EXTRAS[c as usize];
} }
} }
CharTable::AlphanumSpaceSlash => { CharTable::AlphanumSpaceSlash if c == 0 => {
if c == 0 {
return '/'; return '/';
} }
}
_ => {} _ => {}
} }
@@ -116,11 +114,9 @@ pub fn nchar(c: char, table: CharTable) -> Option<i32> {
'?' => return Some(n + 4), '?' => return Some(n + 4),
_ => {} _ => {}
}, },
CharTable::AlphanumSpaceSlash => { CharTable::AlphanumSpaceSlash if c == '/' => {
if c == '/' {
return Some(n); return Some(n);
} }
}
_ => {} _ => {}
} }