Skip to content

Commit

Permalink
Appease dead_code warning by allow(dead_code)
Browse files Browse the repository at this point in the history
  • Loading branch information
boydjohnson committed Jun 23, 2022
1 parent ab94da9 commit ac13400
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions onnxruntime/src/session.rs
Original file line number Diff line number Diff line change
Expand Up @@ -295,6 +295,7 @@ impl<'a> SessionBuilder<'a> {

/// Type storing the session information, built from an [`Environment`](environment/struct.Environment.html)
#[derive(Debug)]
#[allow(dead_code)] // This is to fix a Clippy warning of `env` not being read.
pub struct Session<'a> {
env: &'a Environment,
session_ptr: *mut sys::OrtSession,
Expand Down
1 change: 1 addition & 0 deletions onnxruntime/src/tensor/ort_owned_tensor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ use crate::{
/// `OrtOwnedTensor` implements the [`std::deref::Deref`](#impl-Deref) trait for ergonomic access to
/// the underlying [`ndarray::ArrayView`](https://docs.rs/ndarray/latest/ndarray/type.ArrayView.html).
#[derive(Debug)]
#[allow(dead_code)] // This is to appease clippy as `memory_info` is not read.
pub struct OrtOwnedTensor<'t, 'm, T, D>
where
T: TypeToTensorElementDataType + Debug + Clone,
Expand Down
1 change: 1 addition & 0 deletions onnxruntime/src/tensor/ort_tensor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ use crate::{
/// **NOTE**: The type is not meant to be used directly, use an [`ndarray::Array`](https://docs.rs/ndarray/latest/ndarray/type.Array.html)
/// instead.
#[derive(Debug)]
#[allow(dead_code)] // This is required to appease clipply as `memory_info` is not read from.
pub struct OrtTensor<'t, T, D>
where
T: TypeToTensorElementDataType + Debug + Clone,
Expand Down

0 comments on commit ac13400

Please sign in to comment.