Skip to content

Commit

Permalink
version 0.6.2
Browse files Browse the repository at this point in the history
  • Loading branch information
mothsART committed Sep 23, 2024
1 parent 533baea commit 80f82fa
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 7 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

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

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "machin"
version = "0.6.1"
version = "0.6.2"
authors = ["Ferry Jérémie <[email protected]>"]
description = "Machin is a cli program that simplifies file conversions and batch processing. It's inspired from filter/map/reduce"
keywords = ["app", "cli", "files", "conversion", "batch"]
Expand Down
2 changes: 1 addition & 1 deletion src/machmap/png/mod.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
pub mod pngtopdf;

use image::{ImageFormat, ImageReader};
use colored::Colorize;
use image::{ImageFormat, ImageReader};

use crate::machmap::png::pngtopdf::PngToPdf;
use crate::machmap::{Error, HashMap, InputTo, PNGInputFile};
Expand Down
4 changes: 2 additions & 2 deletions src/machmap/svg/mod.rs
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
pub mod svg2jpg;
pub mod svg2avif;
pub mod svg2jpg;
pub mod svg2pdf;
pub mod svg2png;

use crate::machmap::svg::svg2jpg::SVGToJPG;
use crate::machmap::svg::svg2avif::SVGToAVIF;
use crate::machmap::svg::svg2jpg::SVGToJPG;
use crate::machmap::svg::svg2pdf::SVGToPDF;
use crate::machmap::svg::svg2png::SVGToPNG;
use crate::machmap::*;
Expand Down
6 changes: 4 additions & 2 deletions tests/machmap.rs
Original file line number Diff line number Diff line change
Expand Up @@ -105,9 +105,11 @@ fn svg_to_avif() {
fn svg_to_pdf() {
let hash = get_hash_after(
"tests/datasets/Rust_programming_language_black_logo.svg",
"tests/datasets/machmap/Rust_programming_language_black_logo.pdf"
"tests/datasets/machmap/Rust_programming_language_black_logo.pdf",
);
if hash == "4efbfd4160b8c78f8a6ac72ff742f3a89b076d4c" || hash == "3a7f5098643f33ccbcd70b08da50adac8a69717c" {
if hash == "4efbfd4160b8c78f8a6ac72ff742f3a89b076d4c"
|| hash == "3a7f5098643f33ccbcd70b08da50adac8a69717c"
{
assert!(true);
} else {
assert!(false);
Expand Down

0 comments on commit 80f82fa

Please sign in to comment.