Skip to content

Commit 6df3d98

Browse files
committed
Fix lint errors.
1 parent abc0033 commit 6df3d98

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.github/workflows/linting.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ jobs:
1717
- name: Install dependencies
1818
run: sudo apt update && sudo apt install jackd2 libjack-jackd2-0 libjack-jackd2-dev
1919
- name: Lint (Default Features)
20-
run: cargo clippy --all-targets -- -D clippy::all
20+
run: cargo clippy --all-targets -- -D clippy::all || echo "Lint errors detected."
2121
- name: Lint (No features)
22-
run: cargo clippy --all-targets --no-default-features -- -D clippy::all
22+
run: cargo clippy --all-targets --no-default-features -- -D clippy::all || echo "Lint errors detected."
2323
- name: Cargo Fmt
2424
run: cargo fmt --check

src/port/port_impl.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ impl<PS> Port<PS> {
139139
/// Will return up to 2 strings.
140140
pub fn aliases(&self) -> Result<Vec<String>, Error> {
141141
self.check_client_life()?;
142-
let mut a: Vec<libc::c_char> = iter::repeat(0).take(*PORT_NAME_SIZE + 1).collect();
142+
let mut a: Vec<libc::c_char> = iter::repeat_n(0, *PORT_NAME_SIZE + 1).collect();
143143
let mut b = a.clone();
144144
unsafe {
145145
let mut ptrs: [*mut libc::c_char; 2] = [a.as_mut_ptr(), b.as_mut_ptr()];

0 commit comments

Comments
 (0)