From 4f09ff350cf593330d656fc7036b58c66d055d37 Mon Sep 17 00:00:00 2001 From: Robin Krahl Date: Mon, 24 Dec 2018 01:48:50 +0100 Subject: 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. --- nitrocli/src/commands.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'nitrocli/src/commands.rs') 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(()) } -- cgit v1.2.1