web ui user list

This commit is contained in:
euzu
2025-07-17 17:20:59 +02:00
parent a075452ffb
commit 4af97632b5
42 changed files with 554 additions and 186 deletions
+11
View File
@@ -83,6 +83,17 @@ pub fn trim_last_slash(s: &str) -> Cow<str> {
Cow::Borrowed(s)
}
pub trait Substring {
fn substring(&self, from: usize, to: usize) -> String;
}
impl Substring for String {
fn substring(&self, from: usize, to: usize) -> String {
self.chars().skip(from).take(to - from).collect()
}
}
#[cfg(test)]
mod test {
use std::collections::HashSet;