start support for kex

This commit is contained in:
nora 2024-08-12 17:38:53 +02:00
parent 18993f3a00
commit 11fcb4cd84
4 changed files with 48 additions and 5 deletions

View file

@ -120,7 +120,7 @@ impl Writer {
}
#[derive(Clone, Copy)]
pub struct NameList<'a>(&'a str);
pub struct NameList<'a>(pub &'a str);
impl<'a> NameList<'a> {
pub fn one(item: &'a str) -> Self {
@ -132,7 +132,7 @@ impl<'a> NameList<'a> {
pub fn none() -> NameList<'static> {
NameList("")
}
pub fn iter(&self) -> std::str::Split<char> {
pub fn iter(&self) -> std::str::Split<'a, char> {
self.0.split(',')
}
}