fixup docs
This commit is contained in:
parent
e071dc1cfc
commit
8838d4d26f
|
@ -9,7 +9,7 @@ use std::{
|
||||||
|
|
||||||
use aes_gcm::{
|
use aes_gcm::{
|
||||||
aead::{consts::U12, Aead},
|
aead::{consts::U12, Aead},
|
||||||
Aes256Gcm, KeyInit, Nonce,
|
Aes256Gcm, KeyInit as _, Nonce,
|
||||||
};
|
};
|
||||||
use base64::prelude::{Engine, BASE64_STANDARD};
|
use base64::prelude::{Engine, BASE64_STANDARD};
|
||||||
use blahaj::{Share, Sharks};
|
use blahaj::{Share, Sharks};
|
||||||
|
@ -24,7 +24,9 @@ use keyfork_prompt::{
|
||||||
},
|
},
|
||||||
Message as PromptMessage, PromptHandler, YesNo,
|
Message as PromptMessage, PromptHandler, YesNo,
|
||||||
};
|
};
|
||||||
use sha2::{Digest, Sha256};
|
// Bug with rust-analyzer: https://codeberg.org/ryan-distrust.co/rust-analyzer-trait-resolver-bug
|
||||||
|
#[allow(unused_imports)]
|
||||||
|
use sha2::{Digest, Sha256, digest::KeyInit as _};
|
||||||
use x25519_dalek::{EphemeralSecret, PublicKey};
|
use x25519_dalek::{EphemeralSecret, PublicKey};
|
||||||
|
|
||||||
const PLAINTEXT_LENGTH: u8 = 32 // shard
|
const PLAINTEXT_LENGTH: u8 = 32 // shard
|
||||||
|
|
|
@ -70,7 +70,7 @@ where
|
||||||
/// A mapping between keys and values.
|
/// A mapping between keys and values.
|
||||||
pub values: HashMap<String, String>,
|
pub values: HashMap<String, String>,
|
||||||
|
|
||||||
/// The first variable for the argument, such as a [`PathBuf`].
|
/// The first variable for the argument, such as a [`std::path::PathBuf`].
|
||||||
pub inner: T,
|
pub inner: T,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -61,7 +61,7 @@ impl TerminalIoctl {
|
||||||
|
|
||||||
/// Enable raw mode for the given terminal.
|
/// Enable raw mode for the given terminal.
|
||||||
///
|
///
|
||||||
/// Replaces: [`crossterm::terminal::enable_raw_mode`].
|
/// Replaces: `crossterm::terminal::enable_raw_mode`.
|
||||||
///
|
///
|
||||||
/// # Errors
|
/// # Errors
|
||||||
///
|
///
|
||||||
|
@ -80,7 +80,7 @@ impl TerminalIoctl {
|
||||||
|
|
||||||
/// Disable raw mode for the given terminal.
|
/// Disable raw mode for the given terminal.
|
||||||
///
|
///
|
||||||
/// Replaces: [`crossterm::terminal::disable_raw_mode`].
|
/// Replaces: `crossterm::terminal::disable_raw_mode`.
|
||||||
///
|
///
|
||||||
/// # Errors
|
/// # Errors
|
||||||
///
|
///
|
||||||
|
@ -94,7 +94,7 @@ impl TerminalIoctl {
|
||||||
|
|
||||||
/// Return the size for the given terminal.
|
/// Return the size for the given terminal.
|
||||||
///
|
///
|
||||||
/// Replaces: [`crossterm::terminal::size`].
|
/// Replaces: `crossterm::terminal::size`.
|
||||||
///
|
///
|
||||||
/// # Errors
|
/// # Errors
|
||||||
///
|
///
|
||||||
|
|
Loading…
Reference in New Issue