Skip to content

Commit

Permalink
fix clippy lint
Browse files Browse the repository at this point in the history
  • Loading branch information
kbalt committed Oct 1, 2024
1 parent 7381497 commit b9544a8
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions crates/sdp-types/src/session_description.rs
Original file line number Diff line number Diff line change
Expand Up @@ -167,9 +167,7 @@ pub struct SessionDescription {

impl SessionDescription {
pub fn parse(src: &BytesStr) -> Result<Self, ParseSessionDescriptionError> {
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();

Expand Down

0 comments on commit b9544a8

Please sign in to comment.