diff options
author | Robin Krahl <robin.krahl@ireas.org> | 2018-12-24 01:48:50 +0100 |
---|---|---|
committer | Robin Krahl <robin.krahl@ireas.org> | 2018-12-25 23:06:37 +0100 |
commit | 4f09ff350cf593330d656fc7036b58c66d055d37 (patch) | |
tree | 9ca7f7feb15c15e5208379ceefe3f0e78f48d990 | |
parent | 620b1c9da41906a127e9382f764f2ae1c224b517 (diff) | |
download | nitrocli-4f09ff350cf593330d656fc7036b58c66d055d37.tar.gz nitrocli-4f09ff350cf593330d656fc7036b58c66d055d37.tar.bz2 |
Rename print_status to print_storage_status
The print_status function only prints the Storage-specific status
struct. Therefore it is renamed to print_storage_status.
-rw-r--r-- | nitrocli/src/commands.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/nitrocli/src/commands.rs b/nitrocli/src/commands.rs index 3546e2e..1fbeb79 100644 --- a/nitrocli/src/commands.rs +++ b/nitrocli/src/commands.rs @@ -171,8 +171,8 @@ where .map_err(|(_data, err)| err) } -/// Pretty print the response of a status command. -fn print_status(status: &nitrokey::StorageStatus) { +/// Pretty print the response of a status command for the Nitrokey Storage. +fn print_storage_status(status: &nitrokey::StorageStatus) { // We omit displaying information about the smartcard here as this // program really is only about the SD card portion of the device. println!( @@ -214,7 +214,7 @@ pub fn status() -> Result<()> { .get_status() .map_err(|err| get_error("Getting Storage status failed", &err))?; - print_status(&status); + print_storage_status(&status); Ok(()) } |