Skip to content

Commit

Permalink
release: 0.3.6
Browse files Browse the repository at this point in the history
  • Loading branch information
joshstoik1 committed May 26, 2022
2 parents c6464b6 + 408743d commit b5b4cef
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 7 deletions.
4 changes: 2 additions & 2 deletions CREDITS.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Project Dependencies
Package: yesvgmap
Version: 0.3.5
Generated: 2022-05-19 19:51:30 UTC
Version: 0.3.6
Generated: 2022-05-26 16:26:40 UTC

| Package | Version | Author(s) | License |
| ---- | ---- | ---- | ---- |
Expand Down
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "yesvgmap"
version = "0.3.5"
version = "0.3.6"
license = "WTFPL"
authors = ["Josh Stoik <[email protected]>"]
edition = "2021"
Expand Down
4 changes: 2 additions & 2 deletions release/man/yesvgmap.1
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
.TH "YESVGMAP" "1" "May 2022" "Yesvgmap v0.3.5" "User Commands"
.TH "YESVGMAP" "1" "May 2022" "Yesvgmap v0.3.6" "User Commands"
.SH NAME
Yesvgmap \- Manual page for yesvgmap v0.3.5.
Yesvgmap \- Manual page for yesvgmap v0.3.6.
.SH DESCRIPTION
Generate SVG sprite maps from individual SVG images.
.SS USAGE:
Expand Down
5 changes: 3 additions & 2 deletions src/img.rs
Original file line number Diff line number Diff line change
Expand Up @@ -77,11 +77,12 @@ impl fmt::Display for Map {
impl Map {
/// # New.
pub(super) fn new(
quiet: bool,
id: Option<&str>,
class: Option<&str>,
hide: HideType,
prefix: &str,
paths: Vec<PathBuf>
paths: Vec<PathBuf>,
) -> Result<Self, SvgError> {
// There have to be paths.
if paths.is_empty() {
Expand Down Expand Up @@ -131,7 +132,7 @@ impl Map {
nice_paths.push((stem, s));

// Note if this has styles or other issues.
if warn {
if warn && ! quiet {
warned.push(path.file_name().unwrap().to_string_lossy().into_owned());
}
}
Expand Down
1 change: 1 addition & 0 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@ fn _main() -> Result<(), SvgError> {

// Find the files!
let map = Map::new(
out.is_none(), // Don't print warnings if we're using STDOUT.
id,
class,
hide,
Expand Down

0 comments on commit b5b4cef

Please sign in to comment.