File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -1090,7 +1090,7 @@ pub fn clean_url(url: String) -> String {
10901090 let mut cleaned_url = url. clone ( ) ;
10911091 if is_external_url {
10921092 let cleaner = URL_CLEANER . lock ( ) . unwrap ( ) ;
1093- cleaned_url = cleaner. clear_single_url_str ( & cleaned_url. as_str ( ) ) . expect ( "Unable to clean the URL." ) . as_ref ( ) . to_owned ( ) ;
1093+ cleaned_url = cleaner. clear_single_url_str ( cleaned_url. as_str ( ) ) . expect ( "Unable to clean the URL." ) . as_ref ( ) . to_owned ( ) ;
10941094 }
10951095 cleaned_url
10961096}
@@ -1565,7 +1565,7 @@ mod tests {
15651565 } ;
15661566 let urlencoded = serde_urlencoded:: to_string ( prefs) . expect ( "Failed to serialize Prefs" ) ;
15671567
1568- assert_eq ! ( urlencoded, "theme=laserwave&front_page=default&layout=compact&wide=on&blur_spoiler=on&show_nsfw=off&blur_nsfw=on&hide_hls_notification=off&video_quality=best&hide_sidebar_and_summary=off&use_hls=on&autoplay_videos=on&fixed_navbar=on&disable_visit_reddit_confirmation=on&comment_sort=confidence&post_sort=top&subscriptions=memes%2Bmildlyinteresting&filters=&hide_awards=off&hide_score=off&remove_default_feeds=off" ) ;
1568+ assert_eq ! ( urlencoded, "theme=laserwave&front_page=default&layout=compact&wide=on&blur_spoiler=on&show_nsfw=off&blur_nsfw=on&hide_hls_notification=off&video_quality=best&hide_sidebar_and_summary=off&use_hls=on&autoplay_videos=on&fixed_navbar=on&disable_visit_reddit_confirmation=on&comment_sort=confidence&post_sort=top&subscriptions=memes%2Bmildlyinteresting&filters=&hide_awards=off&hide_score=off&remove_default_feeds=off&clean_urls=off " ) ;
15691569 }
15701570}
15711571
@@ -1675,9 +1675,9 @@ fn test_default_prefs_serialization_loop_bincode() {
16751675}
16761676
16771677static KNOWN_GOOD_CONFIGS : & [ & str ] = & [
1678- "ఴӅβØØҞÉဏႢձĬ༧ȒʯऌԔӵ୮༏ " ,
1679- "ਧՊΥÀÃǎƱГ۸ඣമĖฤ႙ʟาúໜϾௐɥঀĜໃહཞઠѫҲɂఙ࿔DzઉƲӟӻĻฅΜδ໖ԜǗဖငƦơ৶Ą௩ԹʛใЛʃශаΏ " ,
1680- "ਧԩΥÀÃΊ౭൩ඔႠϼҭöҪƸռઇԾॐნɔາǒՍҰच௨ಖມŃЉŐདƦ๙ϩএఠȝഽйʮჯඒϰळՋ௮ສ৵ऎΦѧਹಧଟƙŃ३î༦ŌပղयƟแҜ། " ,
1678+ "ਧӐΥºÃΦĴгౡୡϤҚԷŽဎՐΧΣೡຽဒ೨ʛĽତ๘Ӓǹভµɾ൦ॴцৱ௬చΣҭжҭȱȾཊజĊȔ௸७ƘȂј۰ȥėǨԯၻíႽਈႴ۹ଆ " ,
1679+ "ਧҫടºÃǒɣυໃਣөŕǁజ८ௐɪDžઘႴ౨ඛႻຫǪၼդɍ৪Êѕ୶ʭѹŪҚຊೱѰງიŠСঌາඌĨğਜડ࿅ଠಲೱҋŇƞਭăʁझшȖǾཔ௧ந۞ສÚ " ,
1680+ "ਧҫടºÃǒɿဧϯljഔค๖۞ԆНȦ൨ĭ྅ҤƍตཧႯƅशञঊମਇȕමзқଽijჰଐՋບӎՓஶཕ૭ଛกήऋĜɀಱӔԩझԩîဓŒԬũլಙટщೞຝ৪༎ " ,
16811681] ;
16821682
16831683#[ test]
You can’t perform that action at this time.
0 commit comments