Skip to content

Commit 949b7fc

Browse files
authored
Merge pull request #12 from tasleson/crate
Update regex crate
2 parents 897c3bd + 72d26b8 commit 949b7fc

File tree

4 files changed

+5
-1
lines changed

4 files changed

+5
-1
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,5 @@ url = "1.5.1"
1717
serde = "1.0.16"
1818
serde_json = "1.0.4"
1919
serde_derive = "1.0.16"
20-
regex = "0.2.2"
20+
regex = "1.5"
2121
rand = "0.3.18" # For integration tests only

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)