File tree Expand file tree Collapse file tree 2 files changed +20
-5
lines changed
crates/feedparser-rs-core/src/parser Expand file tree Collapse file tree 2 files changed +20
-5
lines changed Original file line number Diff line number Diff line change @@ -776,8 +776,14 @@ mod tests {
776776 </feed>"# ;
777777
778778 let feed = parse_atom10 ( xml) . unwrap ( ) ;
779- assert_eq ! ( feed. feed. icon. as_deref( ) , Some ( "http://example.com/icon.png" ) ) ;
780- assert_eq ! ( feed. feed. logo. as_deref( ) , Some ( "http://example.com/logo.png" ) ) ;
779+ assert_eq ! (
780+ feed. feed. icon. as_deref( ) ,
781+ Some ( "http://example.com/icon.png" )
782+ ) ;
783+ assert_eq ! (
784+ feed. feed. logo. as_deref( ) ,
785+ Some ( "http://example.com/logo.png" )
786+ ) ;
781787 }
782788
783789 #[ test]
@@ -823,7 +829,10 @@ mod tests {
823829 </feed>"# ;
824830
825831 let feed = parse_atom10 ( xml) . unwrap ( ) ;
826- assert_eq ! ( feed. entries[ 0 ] . summary. as_deref( ) , Some ( "This is a summary" ) ) ;
832+ assert_eq ! (
833+ feed. entries[ 0 ] . summary. as_deref( ) ,
834+ Some ( "This is a summary" )
835+ ) ;
827836 assert ! ( feed. entries[ 0 ] . summary_detail. is_some( ) ) ;
828837 }
829838
Original file line number Diff line number Diff line change @@ -1139,7 +1139,10 @@ mod tests {
11391139 </rss>"# ;
11401140
11411141 let feed = parse_rss20 ( xml) . unwrap ( ) ;
1142- assert_eq ! ( feed
. entries
[ 0 ] . author
. as_deref
( ) , Some ( "[email protected] (John Doe)" ) ) ; 1142+ assert_eq ! (
1143+ feed. entries[ 0 ] . author. as_deref( ) ,
1144+ Some ( "[email protected] (John Doe)" ) 1145+ ) ;
11431146 }
11441147
11451148 #[ test]
@@ -1154,7 +1157,10 @@ mod tests {
11541157 </rss>"# ;
11551158
11561159 let feed = parse_rss20 ( xml) . unwrap ( ) ;
1157- assert_eq ! ( feed. entries[ 0 ] . comments. as_deref( ) , Some ( "http://example.com/comments" ) ) ;
1160+ assert_eq ! (
1161+ feed. entries[ 0 ] . comments. as_deref( ) ,
1162+ Some ( "http://example.com/comments" )
1163+ ) ;
11581164 }
11591165
11601166 #[ test]
You can’t perform that action at this time.
0 commit comments