Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
mre committed Oct 18, 2024
1 parent 28ac497 commit 1b6675a
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion lychee-bin/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -100,4 +100,4 @@ required-features = ["check_example_domains"]
[package.metadata.binstall]
pkg-url = "{ repo }/releases/download/v{ version }/{ name }-v{ version }-{ target }{ archive-suffix }"
bin-dir = "{ bin }{ binary-ext }"
pkg-fmt = "tgz"
pkg-fmt = "tgz"
1 change: 0 additions & 1 deletion lychee-bin/src/formatters/response/color.rs
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,6 @@ mod tests {
use lychee_lib::{ErrorKind, Status, Uri};
use pretty_assertions::assert_eq;

#[cfg(test)]
/// Helper function to strip ANSI color codes for tests
fn strip_ansi_codes(s: &str) -> String {
console::strip_ansi_codes(s).to_string()
Expand Down
5 changes: 3 additions & 2 deletions lychee-bin/src/formatters/response/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,9 @@ pub(crate) trait ResponseFormatter: Send + Sync {

/// Detailed response formatter (defaults to the normal formatter)
///
/// This is used for some output modes to provide more detailed information
/// and in verbose mode.
/// This can be used for output modes which want to provide more detailed
/// information. It is also used if the output is set to verbose mode
/// (i.e. `-v`, `-vv` and above).
fn format_detailed_response(&self, body: &ResponseBody) -> String {
self.format_response(body)
}
Expand Down
4 changes: 2 additions & 2 deletions lychee-bin/src/formatters/stats/compact.rs
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ mod tests {
let stats = ResponseStats {
total: 1,
successful: 1,
errors: 0,
errors: 2,
unknown: 0,
excludes: 0,
timeouts: 0,
Expand All @@ -176,7 +176,7 @@ mod tests {

assert!(result.contains("🔍 1 Total"));
assert!(result.contains("✅ 1 OK"));
assert!(result.contains("🚫 0 Errors"));
assert!(result.contains("🚫 2 Errors"));

assert!(result.contains("[https://example.com/]:"));
assert!(result
Expand Down

0 comments on commit 1b6675a

Please sign in to comment.