From 6de0a5e827b0b18f589c28f489b4ff88169f156c Mon Sep 17 00:00:00 2001 From: metamuffin Date: Fri, 5 Jul 2024 02:57:37 +0200 Subject: this wont work --- src/encoding/method.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/encoding/method.rs') diff --git a/src/encoding/method.rs b/src/encoding/method.rs index 73829b0..6d38cab 100644 --- a/src/encoding/method.rs +++ b/src/encoding/method.rs @@ -6,7 +6,7 @@ pub enum Method { Register, Invite, Ack, - Option, + Options, Cancel, Bye, } @@ -17,7 +17,7 @@ impl Display for Method { Method::Register => "REGISTER", Method::Invite => "INVITE", Method::Ack => "ACK", - Method::Option => "OPTION", + Method::Options => "OPTIONS", Method::Cancel => "CANCEL", Method::Bye => "BYE", }) @@ -30,7 +30,7 @@ impl FromStr for Method { "REGISTER" => Method::Register, "INVITE" => Method::Invite, "ACK" => Method::Ack, - "OPTION" => Method::Option, + "OPTIONS" => Method::Options, "CANCEL" => Method::Cancel, "BYE" => Method::Bye, _ => bail!("unknown method"), -- cgit v1.2.3-70-g09d2