You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
let throttle = config.optional.throttle.unwrap_or_default() > 0;
347
-
info!("Throttle HTTP requests to same host: {:?}", throttle);
347
+
info!("Throttle HTTP requests to same host: {throttle:?}");
348
348
let waits = Arc::new(Mutex::new(HashMap::new()));
349
349
// See also http://patshaughnessy.net/2020/1/20/downloading-100000-files-using-async-rust
Copy file name to clipboardExpand all lines: src/link_extractors/markdown_link_extractor.rs
+5-7Lines changed: 5 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -266,7 +266,7 @@ mod tests {
266
266
fnimage_reference(){
267
267
let le = MarkdownLinkExtractor();
268
268
let link_str = "http://example.net/";
269
-
let input = format!("\n\nBla ", link_str);
269
+
let input = format!("\n\nBla ");
270
270
let result = le.find_links(&input);
271
271
let expected = Ok(MarkupLink{
272
272
target: link_str.to_string(),
@@ -281,7 +281,7 @@ mod tests {
281
281
fnlink_no_title(){
282
282
let le = MarkdownLinkExtractor();
283
283
let link_str = "http://example.net/";
284
-
let input = format!("[This link]({}) has no title attribute.", link_str);
284
+
let input = format!("[This link]({link_str}) has no title attribute.");
285
285
let result = le.find_links(&input);
286
286
let expected = Ok(MarkupLink{
287
287
target: link_str.to_string(),
@@ -296,7 +296,7 @@ mod tests {
296
296
fnlink_with_title(){
297
297
let le = MarkdownLinkExtractor();
298
298
let link_str = "http://example.net/";
299
-
let input = format!("\n123[This is a link]({} \"with title\") oh yea.", link_str);
299
+
let input = format!("\n123[This is a link]({link_str} \"with title\") oh yea.");
300
300
let result = le.find_links(&input);
301
301
let expected = Ok(MarkupLink{
302
302
target: link_str.to_string(),
@@ -388,8 +388,7 @@ mod tests {
388
388
let le = MarkdownLinkExtractor();
389
389
let link_str = "http://example.net/";
let link_str = "http://example.net/";
0 commit comments