custom video response optimizatation

This commit is contained in:
euzu
2025-10-15 20:32:50 +02:00
parent 13ed038e70
commit 3c5422bed6
4 changed files with 90 additions and 80 deletions
+7
View File
@@ -99,6 +99,13 @@ pub fn truncate_string(s: &str, max_len: usize) -> String {
}
}
pub fn mask_credentials(s: &str) -> String {
match s.chars().next() {
Some(first) => format!("{}...", first),
None => "...".to_string(),
}
}
#[cfg(test)]
mod test {
use std::collections::HashSet;