Skip to content

Commit 53e680a

Browse files
committed
Appease dead_code warning by allow(dead_code)
1 parent cf847da commit 53e680a

File tree

3 files changed

+3
-0
lines changed

3 files changed

+3
-0
lines changed

onnxruntime/src/session.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -295,6 +295,7 @@ impl<'a> SessionBuilder<'a> {
295295

296296
/// Type storing the session information, built from an [`Environment`](environment/struct.Environment.html)
297297
#[derive(Debug)]
298+
#[allow(dead_code)] // This is to fix a Clippy warning of `env` not being read.
298299
pub struct Session<'a> {
299300
env: &'a Environment,
300301
session_ptr: *mut sys::OrtSession,

onnxruntime/src/tensor/ort_owned_tensor.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ use crate::{
2323
/// `OrtOwnedTensor` implements the [`std::deref::Deref`](#impl-Deref) trait for ergonomic access to
2424
/// the underlying [`ndarray::ArrayView`](https://docs.rs/ndarray/latest/ndarray/type.ArrayView.html).
2525
#[derive(Debug)]
26+
#[allow(dead_code)] // This is to appease clippy as `memory_info` is not read.
2627
pub struct OrtOwnedTensor<'t, 'm, T, D>
2728
where
2829
T: TypeToTensorElementDataType + Debug + Clone,

onnxruntime/src/tensor/ort_tensor.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ use crate::{
2323
/// **NOTE**: The type is not meant to be used directly, use an [`ndarray::Array`](https://docs.rs/ndarray/latest/ndarray/type.Array.html)
2424
/// instead.
2525
#[derive(Debug)]
26+
#[allow(dead_code)] // This is required to appease clipply as `memory_info` is not read from.
2627
pub struct OrtTensor<'t, T, D>
2728
where
2829
T: TypeToTensorElementDataType + Debug + Clone,

0 commit comments

Comments
 (0)