diff --git a/.cargo/config.toml b/.cargo/config.toml index 8c27f09..f49b38b 100644 --- a/.cargo/config.toml +++ b/.cargo/config.toml @@ -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", diff --git a/benchmarks/perf-test/src/helpers.rs b/benchmarks/perf-test/src/helpers.rs index e7c08c2..54155cd 100644 --- a/benchmarks/perf-test/src/helpers.rs +++ b/benchmarks/perf-test/src/helpers.rs @@ -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; diff --git a/crates/cervo-asset/src/lib.rs b/crates/cervo-asset/src/lib.rs index 7d9a93d..4b72958 100644 --- a/crates/cervo-asset/src/lib.rs +++ b/crates/cervo-asset/src/lib.rs @@ -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. diff --git a/crates/cervo-cli/src/commands.rs b/crates/cervo-cli/src/commands.rs index 478ab0e..04cabf1 100644 --- a/crates/cervo-cli/src/commands.rs +++ b/crates/cervo-cli/src/commands.rs @@ -2,11 +2,6 @@ // Copyright © 2022, Embark Studios AB, all rights reserved. // Created: 13 May 2022 -/*! - - -*/ - use anyhow::Result; use clap::Parser; diff --git a/crates/cervo-cli/src/commands/api.rs b/crates/cervo-cli/src/commands/api.rs index 933e541..6402f54 100644 --- a/crates/cervo-cli/src/commands/api.rs +++ b/crates/cervo-cli/src/commands/api.rs @@ -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; diff --git a/crates/cervo-cli/src/commands/describe.rs b/crates/cervo-cli/src/commands/describe.rs index 8ff33bf..c09c9ea 100644 --- a/crates/cervo-cli/src/commands/describe.rs +++ b/crates/cervo-cli/src/commands/describe.rs @@ -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; diff --git a/crates/cervo-cli/src/commands/package.rs b/crates/cervo-cli/src/commands/package.rs index 9c94081..2190c53 100644 --- a/crates/cervo-cli/src/commands/package.rs +++ b/crates/cervo-cli/src/commands/package.rs @@ -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; diff --git a/crates/cervo-cli/src/commands/to_nnef.rs b/crates/cervo-cli/src/commands/to_nnef.rs index 147215c..c5f32b8 100644 --- a/crates/cervo-cli/src/commands/to_nnef.rs +++ b/crates/cervo-cli/src/commands/to_nnef.rs @@ -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}; diff --git a/crates/cervo-core/src/inferer/helpers.rs b/crates/cervo-core/src/inferer/helpers.rs index 4616d7f..0de895d 100644 --- a/crates/cervo-core/src/inferer/helpers.rs +++ b/crates/cervo-core/src/inferer/helpers.rs @@ -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}, diff --git a/crates/cervo-core/src/inferer/memoizing.rs b/crates/cervo-core/src/inferer/memoizing.rs index 19dc208..41377e4 100644 --- a/crates/cervo-core/src/inferer/memoizing.rs +++ b/crates/cervo-core/src/inferer/memoizing.rs @@ -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, diff --git a/crates/cervo-core/src/model_api.rs b/crates/cervo-core/src/model_api.rs index a0c8f1f..7f172b2 100644 --- a/crates/cervo-core/src/model_api.rs +++ b/crates/cervo-core/src/model_api.rs @@ -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}; diff --git a/crates/cervo-runtime/src/error.rs b/crates/cervo-runtime/src/error.rs index 6eda28b..1ce5818 100644 --- a/crates/cervo-runtime/src/error.rs +++ b/crates/cervo-runtime/src/error.rs @@ -2,9 +2,6 @@ // Copyright © 2022, Tom Solberg, all rights reserved. // Created: 29 July 2022 -/*! - -*/ use crate::BrainId; use thiserror::Error; diff --git a/crates/cervo-runtime/src/runtime.rs b/crates/cervo-runtime/src/runtime.rs index 32d708c..d3618bc 100644 --- a/crates/cervo-runtime/src/runtime.rs +++ b/crates/cervo-runtime/src/runtime.rs @@ -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}; diff --git a/crates/cervo-runtime/src/state.rs b/crates/cervo-runtime/src/state.rs index 3c67a6c..d311ff3 100644 --- a/crates/cervo-runtime/src/state.rs +++ b/crates/cervo-runtime/src/state.rs @@ -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::{ diff --git a/crates/cervo-runtime/src/timing.rs b/crates/cervo-runtime/src/timing.rs index 68871ab..0632211 100644 --- a/crates/cervo-runtime/src/timing.rs +++ b/crates/cervo-runtime/src/timing.rs @@ -1,11 +1,6 @@ // Author: Tom Solberg // Copyright © 2022, Embark Studios, all rights reserved. // Created: 29 July 2022 - -/*! - -*/ - use std::time::Duration; pub(crate) struct TimingBucket {