Skip to content

Commit

Permalink
clippy EVERYTHING
Browse files Browse the repository at this point in the history
  • Loading branch information
tgolsson committed Oct 31, 2024
1 parent 365623c commit 37aed40
Show file tree
Hide file tree
Showing 15 changed files with 2 additions and 51 deletions.
1 change: 0 additions & 1 deletion .cargo/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@ rustflags = [
"-Wclippy::match_wild_err_arm",
"-Wclippy::match_wildcard_for_single_variants",
"-Wclippy::mem_forget",
"-Wclippy::mismatched_target_os",
"-Wclippy::missing_enforced_import_renames",
"-Wclippy::mut_mut",
"-Wclippy::mutex_integer",
Expand Down
4 changes: 0 additions & 4 deletions benchmarks/perf-test/src/helpers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,6 @@
// Copyright © 2022, Embark Studios AB, all rights reserved.
// Created: 11 May 2022

/*!
*/

use std::{collections::HashMap, fs::File, path::Path};

use cervo_core::prelude::State;
Expand Down
2 changes: 1 addition & 1 deletion crates/cervo-asset/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ pub const MAGIC: [u8; 4] = [b'C', b'R', b'V', b'O'];
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
#[repr(u8)]
pub enum AssetKind {
/// Used for an asset containing ONNX ModelProto data.
/// Used for an asset containing ONNX `ModelProto` data.
Onnx = 1,

/// Used for an asset containing NNEF data.
Expand Down
5 changes: 0 additions & 5 deletions crates/cervo-cli/src/commands.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,6 @@
// Copyright © 2022, Embark Studios AB, all rights reserved.
// Created: 13 May 2022

/*!
*/

use anyhow::Result;
use clap::Parser;

Expand Down
4 changes: 0 additions & 4 deletions crates/cervo-cli/src/commands/api.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,6 @@
// Copyright © 2022, Embark Studios AB, all rights reserved.
// Created: 13 May 2022

/*!
*/

use anyhow::{bail, Result};
use cervo::asset::AssetData;
use cervo::core::prelude::Inferer;
Expand Down
4 changes: 0 additions & 4 deletions crates/cervo-cli/src/commands/describe.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,6 @@
// Copyright © 2022, Embark Studios AB, all rights reserved.
// Created: 13 May 2022

/*!
*/

use anyhow::{bail, Result};
use cervo::asset::AssetData;
use clap::Parser;
Expand Down
4 changes: 0 additions & 4 deletions crates/cervo-cli/src/commands/package.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,6 @@
// Copyright © 2022, Embark Studios AB, all rights reserved.
// Created: 13 May 2022

/*!
*/

use anyhow::{bail, Result};
use cervo::asset::{AssetData, AssetKind};
use clap::Parser;
Expand Down
3 changes: 0 additions & 3 deletions crates/cervo-cli/src/commands/to_nnef.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@
// Copyright © 2022, Embark Studios AB, all rights reserved.
// Created: 13 May 2022

/*!
*/
use anyhow::{bail, Result};
use clap::Parser;
use std::{fs::File, io::Write, path::PathBuf};
Expand Down
4 changes: 0 additions & 4 deletions crates/cervo-core/src/inferer/helpers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,6 @@
// Copyright © 2022, Embark Studios AB, all rights reserved.
// Created: 12 May 2022

/*!
*/

use tract_core::{
model::{TypedModel, TypedSimplePlan},
prelude::{Symbol, SymbolValues, ToDim},
Expand Down
2 changes: 1 addition & 1 deletion crates/cervo-core/src/inferer/memoizing.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ use tract_hir::prelude::*;
/// # Cons
///
/// * For small amounts of data and large models the spikes can offset
/// amortized gains significantly
/// amortized gains significantly

pub struct MemoizingDynamicInferer {
symbol: Symbol,
Expand Down
4 changes: 0 additions & 4 deletions crates/cervo-core/src/model_api.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,6 @@
// Copyright © 2022, Embark Studios AB, all rights reserved.
// Created: 11 May 2022

/*!
*/

use tract_core::{model::TypedModel, tract_data::TractResult};
use tract_hir::{infer::Factoid, prelude::InferenceModel};

Expand Down
3 changes: 0 additions & 3 deletions crates/cervo-runtime/src/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@
// Copyright © 2022, Tom Solberg, all rights reserved.
// Created: 29 July 2022

/*!
*/
use crate::BrainId;
use thiserror::Error;

Expand Down
4 changes: 0 additions & 4 deletions crates/cervo-runtime/src/runtime.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,6 @@
// Copyright © 2022, Tom Solberg, all rights reserved.
// Created: 22 September 2022

/*!
*/

mod ticket;

use crate::{error::CervoError, state::ModelState, AgentId, BrainId};
Expand Down
4 changes: 0 additions & 4 deletions crates/cervo-runtime/src/state.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,6 @@
// Copyright © 2022, Tom Solberg, all rights reserved.
// Created: 29 July 2022

/*!
*/

use crate::{timing::TimingBucket, AgentId};
use cervo_core::prelude::{Batcher, Inferer, InfererExt, Response, State};
use std::{
Expand Down
5 changes: 0 additions & 5 deletions crates/cervo-runtime/src/timing.rs
Original file line number Diff line number Diff line change
@@ -1,11 +1,6 @@
// Author: Tom Solberg <[email protected]>
// Copyright © 2022, Embark Studios, all rights reserved.
// Created: 29 July 2022

/*!
*/

use std::time::Duration;

pub(crate) struct TimingBucket {
Expand Down

0 comments on commit 37aed40

Please sign in to comment.