mirror of
https://codeberg.org/icewind/tf-log-parser.git
synced 2026-11-30 04:40:47 +01:00
fix damage
This commit is contained in:
parent
fbe3eee614
commit
838c3a0dd9
4 changed files with 17 additions and 3 deletions
|
|
@ -76,6 +76,12 @@ pub enum RawSubject<'a> {
|
|||
World,
|
||||
}
|
||||
|
||||
impl Default for RawSubject<'static> {
|
||||
fn default() -> Self {
|
||||
RawSubject::System("unknown")
|
||||
}
|
||||
}
|
||||
|
||||
impl<'a> RawSubject<'a> {
|
||||
pub fn id(&self) -> Result<SubjectId, SubjectError> {
|
||||
self.try_into()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue