aboutsummaryrefslogtreecommitdiff
path: root/src/device/wrapper.rs
diff options
context:
space:
mode:
authorRobin Krahl <robin.krahl@ireas.org>2020-01-11 20:13:22 +0100
committerRobin Krahl <robin.krahl@ireas.org>2020-01-11 20:26:40 +0100
commit6142752da1563c1ab873dc7069aeec72522cca99 (patch)
treebb6fe9eca8cbd5e32d4b133b57d90466c4bc9b8e /src/device/wrapper.rs
parentdbee55efa41496c8a683bfab96163facc93d6639 (diff)
downloadnitrokey-rs-6142752da1563c1ab873dc7069aeec72522cca99.tar.gz
nitrokey-rs-6142752da1563c1ab873dc7069aeec72522cca99.tar.bz2
Rename Status::get_status to get_storage_status
In the last patch, we added the get_status function to the Device trait. This patch renames the Storage::get_status function to get_storage_status to resolve the name clash – though allowed by the compiler, it is rather confusing for the end user.
Diffstat (limited to 'src/device/wrapper.rs')
-rw-r--r--src/device/wrapper.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/device/wrapper.rs b/src/device/wrapper.rs
index adbb695..69291ad 100644
--- a/src/device/wrapper.rs
+++ b/src/device/wrapper.rs
@@ -135,7 +135,7 @@ impl<'a> Device<'a> for DeviceWrapper<'a> {
fn get_status(&self) -> Result<Status, Error> {
match self {
DeviceWrapper::Pro(dev) => dev.get_status(),
- DeviceWrapper::Storage(dev) => Device::get_status(dev),
+ DeviceWrapper::Storage(dev) => dev.get_status(),
}
}
}