Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion examples/archive/archive.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ async fn main() -> Result<(), Box<dyn Error>> {
.await?;

if let Some(replacement) = result {
println!("Good news! {} can be replaced with {}", url, replacement);
println!("Good news! {url} can be replaced with {replacement}");
}

Ok(())
Expand Down
2 changes: 1 addition & 1 deletion examples/chain/chain.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ async fn main() -> Result<()> {
.client()?;

let result = client.check("https://wikipedia.org/home").await;
println!("{:?}", result);
println!("{result:?}");

Ok(())
}
12 changes: 6 additions & 6 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions lychee-bin/tests/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -998,7 +998,7 @@ mod cli {

// Ensure clean state
if cache_file.exists() {
println!("Removing cache file before test: {:?}", cache_file);
println!("Removing cache file before test: {cache_file:?}");
fs::remove_file(&cache_file)?;
tokio::time::sleep(Duration::from_millis(500)).await;
}
Expand Down Expand Up @@ -1041,7 +1041,7 @@ mod cli {

// Check cache contents
let data = fs::read_to_string(&cache_file)?;
println!("Cache file contents: {}", data);
println!("Cache file contents: {data}");

assert!(
data.contains(&format!("{}/,200", mock_server_ok.uri())),
Expand Down
8 changes: 4 additions & 4 deletions lychee-lib/src/archive/wayback/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -148,12 +148,12 @@ mod tests {
Ok(())
}

#[ignore]
#[ignore = "
It is flaky because the API does not reliably return snapshots,
i.e. the `archived_snapshots` field is unreliable.
That's why the test is ignored. For development and documentation this test is still useful."]
#[tokio::test]
/// This tests the real Wayback API without any mocks.
/// It is flaky because the API does not reliably return snapshots,
/// i.e. the `archived_snapshots` field is unreliable.
/// That's why the test is ignored. For development and documentation this test is still useful.
async fn wayback_suggestion_real() -> Result<(), Box<dyn StdError>> {
let url = &"https://example.com".try_into()?;
let response = get_archive_snapshot(url, TIMEOUT).await?;
Expand Down
5 changes: 0 additions & 5 deletions lychee-lib/src/extract/html/html5gum.rs
Original file line number Diff line number Diff line change
Expand Up @@ -464,12 +464,7 @@ mod tests {
assert_eq!(uris, expected);
}

// TODO: This test is currently failing because we don't handle nested
// verbatim elements of the same type correctly. The first closing tag will
// lift the verbatim flag. This is a known issue and could be handled by
// keeping a stack of verbatim flags.
#[test]
#[ignore]
Comment on lines -467 to -472
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah nice, so this no longer failing? Thanks for removing the #[ignore].

fn test_include_verbatim_nested_identical() {
const HTML_INPUT: &str = r#"
<pre>
Expand Down
1 change: 0 additions & 1 deletion lychee-lib/src/extract/markdown.rs
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,6 @@ or inline like `https://bar.org` for instance.
}

#[test]
#[ignore]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thx

fn test_skip_verbatim_html() {
let input = "
<code>
Expand Down
Loading