Skip to content

Commit 5ee2c71

Browse files
committed
Remove unnecessary trait implementations
The trait implementations for DevUuid and Filesystem Uuid were made unnecessary by the previous commit. Signed-off-by: mulhern <amulhern@redhat.com>
1 parent 7b90bef commit 5ee2c71

1 file changed

Lines changed: 1 addition & 33 deletions

File tree

src/dbus/types.rs

Lines changed: 1 addition & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,7 @@ use zbus::zvariant::{signature::Child, Basic, Signature, Type, Value};
88

99
use crate::{
1010
dbus::util::result_option_to_tuple,
11-
engine::{
12-
ActionAvailability, DevUuid, FilesystemUuid, LockedPoolsInfo, PoolUuid, StoppedPoolsInfo,
13-
},
11+
engine::{ActionAvailability, LockedPoolsInfo, PoolUuid, StoppedPoolsInfo},
1412
};
1513

1614
pub type FilesystemSpec<'a> = Vec<(&'a str, (bool, &'a str), (bool, &'a str))>;
@@ -249,36 +247,6 @@ impl<'a> From<PoolUuid> for Value<'a> {
249247
}
250248
}
251249

252-
impl Basic for FilesystemUuid {
253-
const SIGNATURE_CHAR: char = 's';
254-
const SIGNATURE_STR: &str = "s";
255-
}
256-
257-
impl Type for FilesystemUuid {
258-
const SIGNATURE: &Signature = &Signature::Str;
259-
}
260-
261-
impl<'a> From<FilesystemUuid> for Value<'a> {
262-
fn from(u: FilesystemUuid) -> Value<'a> {
263-
Value::from(u.simple().to_string())
264-
}
265-
}
266-
267-
impl Basic for DevUuid {
268-
const SIGNATURE_CHAR: char = 's';
269-
const SIGNATURE_STR: &str = "s";
270-
}
271-
272-
impl Type for DevUuid {
273-
const SIGNATURE: &Signature = &Signature::Str;
274-
}
275-
276-
impl<'a> From<DevUuid> for Value<'a> {
277-
fn from(u: DevUuid) -> Value<'a> {
278-
Value::from(u.simple().to_string())
279-
}
280-
}
281-
282250
impl Type for ActionAvailability {
283251
const SIGNATURE: &Signature = &Signature::Str;
284252
}

0 commit comments

Comments
 (0)