Rename readers module to reader; Readers => Context (#278)

Renames the `readers` module to be singular: `reader`.

Renames the former `readers::Readers` struct to `reader::Context`.
This commit is contained in:
Tony Arcieri (iqlusion)
2021-07-12 11:01:12 -07:00
committed by GitHub
parent e6cea2eca6
commit 227518dd1b
4 changed files with 20 additions and 11 deletions
+2 -2
View File
@@ -7,7 +7,7 @@ use std::{
process::exit,
};
use termcolor::{ColorSpec, StandardStreamLock, WriteColor};
use yubikey::{Readers, Serial};
use yubikey::{Context, Serial};
/// The `readers` subcommand
#[derive(Debug, Options)]
@@ -16,7 +16,7 @@ pub struct ReadersCmd {}
impl ReadersCmd {
/// Run the `readers` subcommand
pub fn run(&self) {
let mut readers = Readers::open().unwrap_or_else(|e| {
let mut readers = Context::open().unwrap_or_else(|e| {
status_err!("couldn't open PC/SC context: {}", e);
exit(1);
});