[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,18 +160,14 @@ impl CallsignHashTable {
let mut idx = start_idx;
loop {
match &self.entries[idx] {
Some(entry) => {
let stored = (entry.hash & HASH22_MASK) >> shift;
if stored == target {
return Some(entry.callsign.clone());
}
idx = (idx + 1) % CALLSIGN_HASHTABLE_SIZE;
if idx == start_idx {
return None;
}
}
None => return None,
let entry = self.entries[idx].as_ref()?;
let stored = (entry.hash & HASH22_MASK) >> shift;
if stored == target {
return Some(entry.callsign.clone());
}
idx = (idx + 1) % CALLSIGN_HASHTABLE_SIZE;
if idx == start_idx {
return None;
}
}
}
+4 -8
View File
@@ -64,10 +64,8 @@ pub fn charn(mut c: i32, table: CharTable) -> char {
return EXTRAS[c as usize];
}
}
CharTable::AlphanumSpaceSlash => {
if c == 0 {
return '/';
}
CharTable::AlphanumSpaceSlash if c == 0 => {
return '/';
}
_ => {}
}
@@ -116,10 +114,8 @@ pub fn nchar(c: char, table: CharTable) -> Option<i32> {
'?' => return Some(n + 4),
_ => {}
},
CharTable::AlphanumSpaceSlash => {
if c == '/' {
return Some(n);
}
CharTable::AlphanumSpaceSlash if c == '/' => {
return Some(n);
}
_ => {}
}