diff --git a/crates/sdp-types/src/session_description.rs b/crates/sdp-types/src/session_description.rs index 4d29bdc..e4c0a1e 100644 --- a/crates/sdp-types/src/session_description.rs +++ b/crates/sdp-types/src/session_description.rs @@ -167,9 +167,7 @@ pub struct SessionDescription { impl SessionDescription { pub fn parse(src: &BytesStr) -> Result { - let lines = src - .split(|c| matches!(c, '\n' | '\r')) - .filter(|line| !line.is_empty()); + let lines = src.split(['\n', '\r']).filter(|line| !line.is_empty()); let mut parser = Parser::default();