Skip to content

Commit

Permalink
fix: move catchall case to panic, should never occur here.
Browse files Browse the repository at this point in the history
  • Loading branch information
itkovian committed Sep 25, 2024
1 parent 4701c13 commit 894a3a3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/stdlib/parse_syslog.rs
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,8 @@ impl FunctionExpression for ParseSyslogFn {
let variant = match self.variant.as_bytes() {
b"rfc3164" => Variant::RFC3164,
b"rfc5424" => Variant::RFC5424,
_ => Variant::Either,
b"either" => Variant::Either,
_ => panic!("No such variant for syslog RFC"),
};

parse_syslog(value, variant, ctx)
Expand Down

0 comments on commit 894a3a3

Please sign in to comment.