@@ -518,12 +518,18 @@ mod tests {
518518
519519 // magnet_url should be None, not Some("")
520520 assert_eq ! ( result. magnet_url, None ) ;
521- assert_eq ! ( result. link, Some ( "http://example.com/download.torrent" . to_string( ) ) ) ;
521+ assert_eq ! (
522+ result. link,
523+ Some ( "http://example.com/download.torrent" . to_string( ) )
524+ ) ;
522525
523526 // Get the torrent URL - this should return the valid link
524527 let url = result. get_torrent_url ( ) ;
525- assert_eq ! ( url, Some ( "http://example.com/download.torrent" . to_string( ) ) ,
526- "Expected to get the valid download link, not empty string" ) ;
528+ assert_eq ! (
529+ url,
530+ Some ( "http://example.com/download.torrent" . to_string( ) ) ,
531+ "Expected to get the valid download link, not empty string"
532+ ) ;
527533 }
528534
529535 #[ test]
@@ -552,7 +558,10 @@ mod tests {
552558
553559 // Get the torrent URL - should fall back to the valid link
554560 let url = result. get_torrent_url ( ) ;
555- assert_eq ! ( url, Some ( "http://example.com/download.torrent" . to_string( ) ) ,
556- "Expected to get the valid download link, not construct invalid magnet" ) ;
561+ assert_eq ! (
562+ url,
563+ Some ( "http://example.com/download.torrent" . to_string( ) ) ,
564+ "Expected to get the valid download link, not construct invalid magnet"
565+ ) ;
557566 }
558567}
0 commit comments