Skip to content

Commit

Permalink
Merge branch 'main' into 0.6.0-more-image-compare-options
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisRega committed May 5, 2024
2 parents f8efb40 + 9104d1e commit 157720c
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
steps:
- uses: actions/checkout@v4
- name: Compile and release
uses: rust-build/[email protected].4
uses: rust-build/[email protected].5
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
Expand Down
1 change: 0 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@ opener = "0.7"
anyhow = "1.0"
json_diff_ng = { version = "0.5" }


[dev-dependencies]
env_logger = "0.11"
tracing = { version = "0.1", default-features = false }
Expand Down
1 change: 1 addition & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -380,6 +380,7 @@ pub fn validate_config(config_file: impl AsRef<Path>) -> bool {
mod tests {
use super::*;
use crate::image::{CompareMode, RGBCompareMode};

#[test]
fn folder_not_found_is_false() {
let rule = Rule {
Expand Down
6 changes: 3 additions & 3 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -99,9 +99,9 @@ fn main() -> Result<(), vg_errortools::MainError> {
actual,
config,
} => {
let config: ComparisonMode = serde_json::from_str(&config)
.map_err(|e| format!("Couldn't deserialize the config string: {e}"))
.unwrap();
use anyhow::Context;
let config: ComparisonMode =
serde_json::from_str(&config).context("Couldn't deserialize the config string")?;
let result = compare_files(nominal, actual, &config);
info!("Diff results: {result:#?}");
if result.is_error {
Expand Down

0 comments on commit 157720c

Please sign in to comment.