Skip to content

Commit

Permalink
Added verbose check for spacing println (#2)
Browse files Browse the repository at this point in the history
i'm currently using this as a wrapper which means i don't want to use
verbose,
but this println is not under an if check so it prints empty newlines
into the console

---------

Co-authored-by: d10sfan <[email protected]>
  • Loading branch information
ReeZey and d10sfan authored Apr 17, 2024
1 parent f950a69 commit 145207d
Show file tree
Hide file tree
Showing 4 changed files with 39 additions and 31 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,15 @@ jobs:
build:
name: Build & Publish
runs-on: ubuntu-latest
container:
image: rust:1.68-buster
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Install Rust
run: |
rustup toolchain install 1.77.1 --profile minimal --no-self-update
rustup default 1.77.1
- name: Use rust cache
uses: Swatinem/rust-cache@v2
- name: Crate Publish
uses: katyo/publish-crates@v2
with:
Expand Down
54 changes: 28 additions & 26 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,15 @@ jobs:
build:
name: Build & Crate Dry Run
runs-on: ubuntu-latest
container:
image: rust:1.71-buster
env:
CARGO_HOME: ./cargo
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Install Rust
run: |
rustup toolchain install 1.77.1 --profile default
rustup default 1.77.1
- name: Use rust cache
uses: Swatinem/rust-cache@v2
- name: Build
run: cargo build
- name: Crate Publish Dry Run
Expand All @@ -22,42 +24,42 @@ jobs:
clippy:
name: Run Clippy
runs-on: ubuntu-latest
container:
image: rust:1.71-buster
env:
CARGO_HOME: ./cargo
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install Clippy
run: rustup component add clippy
uses: actions/checkout@v4
- name: Install Rust
run: |
rustup toolchain install 1.77.1 --profile default
rustup default 1.77.1
- name: Use rust cache
uses: Swatinem/rust-cache@v2
- name: Clippy Run
run: cargo clippy
fmt:
name: Run fmt and Verify
runs-on: ubuntu-latest
container:
image: rust:1.71-buster
env:
CARGO_HOME: ./cargo
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install fmt
run: rustup component add rustfmt
uses: actions/checkout@v4
- name: Install Rust
run: |
rustup toolchain install 1.77.1 --profile default
rustup default 1.77.1
- name: Use rust cache
uses: Swatinem/rust-cache@v2
- name: fmt Run
run: cargo fmt --all -- --check
audit:
name: Run Audit on Dependencies
runs-on: ubuntu-latest
container:
image: rust:1.71-buster
env:
CARGO_HOME: ./cargo
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install Audit
run: cargo install cargo-audit
uses: actions/checkout@v4
- name: Install Rust
run: |
rustup toolchain install 1.77.1 --profile default
rustup default 1.77.1
- name: Use rust cache
uses: Swatinem/rust-cache@v2
- name: Audit Run
run: cargo audit
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "rbchunk"
version = "2.0.3"
version = "2.1.0"
edition = "2021"

description = "Based on bchunk by Heikki Hannikainen <[email protected]>"
Expand Down
4 changes: 3 additions & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,9 @@ fn read_cue(args: &mut Args) -> io::Result<Vec<Track>> {
match e {
"TRACK" => {
tracks.push(Default::default());
println!();
if args.verbose {
println!();
}
let mut t = s.split_whitespace().skip(1);
match t.next() {
Some(num_s) => match num_s.parse() {
Expand Down

0 comments on commit 145207d

Please sign in to comment.