diff options
author | Robin Krahl <robin.krahl@ireas.org> | 2018-05-28 18:14:14 +0000 |
---|---|---|
committer | Robin Krahl <robin.krahl@ireas.org> | 2018-05-28 20:17:14 +0200 |
commit | cea0aed29feef1d07d91670ea63cd6af45efdfee (patch) | |
tree | b7fbf0cc327b3432fefa7a0d9a5693bb672e3fa4 /src/config.rs | |
parent | ff15cbec83dbd01c8b544453dcb825670d0f7df4 (diff) | |
download | nitrokey-rs-cea0aed29feef1d07d91670ea63cd6af45efdfee.tar.gz nitrokey-rs-cea0aed29feef1d07d91670ea63cd6af45efdfee.tar.bz2 |
Rewrap documentation comments to 100 characters
Diffstat (limited to 'src/config.rs')
-rw-r--r-- | src/config.rs | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/src/config.rs b/src/config.rs index b37c9d3..33bf256 100644 --- a/src/config.rs +++ b/src/config.rs @@ -3,18 +3,17 @@ use util::CommandError; /// The configuration for a Nitrokey. #[derive(Clone, Copy, Debug, PartialEq)] pub struct Config { - /// If set, the stick will generate a code from the HOTP slot with the - /// given number if numlock is pressed. The slot number must be 0, 1 or 2. + /// If set, the stick will generate a code from the HOTP slot with the given number if numlock + /// is pressed. The slot number must be 0, 1 or 2. pub numlock: Option<u8>, - /// If set, the stick will generate a code from the HOTP slot with the - /// given number if capslock is pressed. The slot number must be 0, 1 or 2. + /// If set, the stick will generate a code from the HOTP slot with the given number if capslock + /// is pressed. The slot number must be 0, 1 or 2. pub capslock: Option<u8>, - /// If set, the stick will generate a code from the HOTP slot with the - /// given number if scrollock is pressed. The slot number must be 0, 1 or 2. + /// If set, the stick will generate a code from the HOTP slot with the given number if + /// scrollock is pressed. The slot number must be 0, 1 or 2. pub scrollock: Option<u8>, - /// If set, OTP generation using [`get_hotp_code`][] or [`get_totp_code`][] - /// requires user authentication. Otherwise, OTPs can be generated without - /// authentication. + /// If set, OTP generation using [`get_hotp_code`][] or [`get_totp_code`][] requires user + /// authentication. Otherwise, OTPs can be generated without authentication. /// /// [`get_hotp_code`]: trait.ProvideOtp.html#method.get_hotp_code /// [`get_totp_code`]: trait.ProvideOtp.html#method.get_totp_code |