Skip to content

Commit 72d26b8

Browse files
committed
fix deadcode warnings
Signed-off-by: Tony Asleson <[email protected]>
1 parent fcc7f54 commit 72d26b8

File tree

3 files changed

+4
-0
lines changed

3 files changed

+4
-0
lines changed

src/client.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ pub struct Client {
5050
plugin_name: String,
5151
}
5252

53+
#[allow(dead_code)]
5354
#[derive(Deserialize, Debug)]
5455
struct Job {
5556
status: u32,

src/data.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -890,6 +890,7 @@ fn init_type_to_int<S: Serializer>(
890890
serializer.serialize_i32(*i as i32)
891891
}
892892

893+
#[allow(dead_code)]
893894
#[derive(Deserialize, Debug, Clone)]
894895
/// Represent a target port which is the front-end port of storage system which
895896
/// storage user/client connect to and get storage service from.
@@ -951,6 +952,7 @@ fn int_to_port_type<'de, D: Deserializer<'de>>(
951952
}
952953
}
953954

955+
#[allow(dead_code)]
954956
#[derive(Deserialize, Debug, Clone)]
955957
/// Represent a battery.
956958
pub struct Battery {

src/error.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -270,6 +270,7 @@ const ERROR_NUMBER_EMPTY_ACCESS_GROUP: i32 = 511;
270270
const ERROR_NUMBER_POOL_NOT_READY: i32 = 512;
271271
const ERROR_NUMBER_DISK_NOT_FREE: i32 = 513;
272272

273+
#[allow(dead_code)]
273274
#[derive(Deserialize, Debug)]
274275
pub(crate) struct LsmErrorIpc {
275276
pub(crate) code: i32,

0 commit comments

Comments
 (0)