mirror of
https://github.com/euzu/tuliprox.git
synced 2026-09-30 21:12:12 +02:00
custom video response optimizatation
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user