mirror of
https://codeberg.org/YGGverse/psocks.git
synced 2026-04-01 00:45:27 +00:00
implement (rules) list api
This commit is contained in:
parent
461f838cc0
commit
eeafed077a
4 changed files with 34 additions and 1 deletions
|
|
@ -17,3 +17,12 @@ impl Item {
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
impl std::fmt::Display for Item {
|
||||
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
||||
match self {
|
||||
Self::Ending(s) => write!(f, ".{}", s),
|
||||
Self::Exact(s) => write!(f, "{}", s),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue