Allow clippy::new_without_default.
This commit is contained in:
2
.github/workflows/cargo_clippy.yml
vendored
2
.github/workflows/cargo_clippy.yml
vendored
@@ -29,4 +29,4 @@ jobs:
|
|||||||
token: ${{ secrets.GITHUB_TOKEN }}
|
token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
args: --all-targets --features std
|
args: --all-targets --features std
|
||||||
- name: Deny Clippy warnings
|
- name: Deny Clippy warnings
|
||||||
run: cargo clippy --all-targets --features std -- -D warnings
|
run: cargo clippy --all-targets --features std -- -A clippy::new_without_default -D warnings
|
||||||
|
|||||||
@@ -31,7 +31,7 @@ cargo fmt --all -- --check
|
|||||||
cd ../..
|
cd ../..
|
||||||
|
|
||||||
echo "Running Clippy lints..."
|
echo "Running Clippy lints..."
|
||||||
cargo clippy --all-targets --features std -- -D warnings
|
cargo clippy --all-targets --features std -- -A clippy::new_without_default -D warnings
|
||||||
|
|
||||||
echo "Building sha256sum tool..."
|
echo "Building sha256sum tool..."
|
||||||
cargo build --manifest-path third_party/tock/tools/sha256sum/Cargo.toml
|
cargo build --manifest-path third_party/tock/tools/sha256sum/Cargo.toml
|
||||||
|
|||||||
@@ -137,7 +137,6 @@ impl CtapHid {
|
|||||||
const TIMEOUT_DURATION: Duration<isize> = Duration::from_ms(100);
|
const TIMEOUT_DURATION: Duration<isize> = Duration::from_ms(100);
|
||||||
const WINK_TIMEOUT_DURATION: Duration<isize> = Duration::from_ms(5000);
|
const WINK_TIMEOUT_DURATION: Duration<isize> = Duration::from_ms(5000);
|
||||||
|
|
||||||
#[allow(clippy::new_without_default)]
|
|
||||||
pub fn new() -> CtapHid {
|
pub fn new() -> CtapHid {
|
||||||
CtapHid {
|
CtapHid {
|
||||||
assembler: MessageAssembler::new(),
|
assembler: MessageAssembler::new(),
|
||||||
|
|||||||
@@ -49,12 +49,6 @@ pub enum Error {
|
|||||||
Timeout,
|
Timeout,
|
||||||
}
|
}
|
||||||
|
|
||||||
impl Default for MessageAssembler {
|
|
||||||
fn default() -> Self {
|
|
||||||
Self::new()
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
impl MessageAssembler {
|
impl MessageAssembler {
|
||||||
pub fn new() -> MessageAssembler {
|
pub fn new() -> MessageAssembler {
|
||||||
MessageAssembler {
|
MessageAssembler {
|
||||||
|
|||||||
1
third_party/libtock-drivers/src/console.rs
vendored
1
third_party/libtock-drivers/src/console.rs
vendored
@@ -25,7 +25,6 @@ pub struct Console {
|
|||||||
}
|
}
|
||||||
|
|
||||||
impl Console {
|
impl Console {
|
||||||
#[allow(clippy::new_without_default)]
|
|
||||||
pub fn new() -> Console {
|
pub fn new() -> Console {
|
||||||
Console {
|
Console {
|
||||||
allow_buffer: [0; BUFFER_SIZE],
|
allow_buffer: [0; BUFFER_SIZE],
|
||||||
|
|||||||
Reference in New Issue
Block a user