Skip to content

Commit

Permalink
Lint fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
r-n-o committed Nov 12, 2024
1 parent 39d2d40 commit b09f3c6
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 13 deletions.
8 changes: 4 additions & 4 deletions src/qos_client/src/cli/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -203,13 +203,13 @@ pub enum Command {
ExportKey,
/// Inject a quorum key into a non-fully provisioned enclave
InjectKey,
/// Verify a signature from qos_p256 pair.
/// Verify a signature from `qos_p256` pair.
P256Verify,
/// Sign with a p256 signature.
P256Sign,
/// Encrypt to a qos_p256 public key.
/// Encrypt to a `qos_p256` public key.
P256AsymmetricEncrypt,
/// Decrypt a payload encrypted to a qos_p256 public key.
/// Decrypt a payload encrypted to a `qos_p256` public key.
P256AsymmetricDecrypt,
}

Expand Down Expand Up @@ -979,7 +979,7 @@ impl ClientOpts {
}

fn secret_path(&self) -> Option<String> {
self.parsed.single(SECRET_PATH).map(String::clone)
self.parsed.single(SECRET_PATH).cloned()
}

fn share_path(&self) -> String {
Expand Down
6 changes: 3 additions & 3 deletions src/qos_client/src/cli/services.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2783,7 +2783,7 @@ mod tests {
));

let output = String::from_utf8(vec_out).unwrap();
let output: Vec<_> = output.trim().split('\n').collect();
let output: Vec<_> = output.lines().collect();
assert_eq!(
output.last().unwrap(),
&"Is this the correct namespace nonce: 2? (yes/no)"
Expand All @@ -2807,7 +2807,7 @@ mod tests {
));

let output = String::from_utf8(vec_out).unwrap();
let output: Vec<_> = output.trim().split('\n').collect();
let output: Vec<_> = output.lines().collect();
assert_eq!(
output.last().unwrap(),
&"Does this AWS IAM role belong to the intended organization: pr3? (yes/no)"
Expand All @@ -2831,7 +2831,7 @@ mod tests {
));

let output = String::from_utf8(vec_out).unwrap();
let output: Vec<_> = output.trim().split('\n').collect();
let output: Vec<_> = output.lines().collect();

assert_eq!(
output[3],
Expand Down
6 changes: 3 additions & 3 deletions src/qos_core/src/protocol/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ pub enum ProtocolError {
/// Cryptography error
/// Approval was not valid for a manifest.
InvalidManifestApproval(boot::Approval),
/// [boot::ManifestEnvelope] did not have approvals
/// [`boot::ManifestEnvelope`] did not have approvals
NotEnoughApprovals,
/// Protocol Message could not be matched against an available route.
/// Ensure the executor is in the correct phase.
Expand Down Expand Up @@ -93,9 +93,9 @@ pub enum ProtocolError {
BadShareSetApprovals,
/// Could not verify a message against an approval
CouldNotVerifyApproval,
/// Not a member of the [boot::ShareSet].
/// Not a member of the [`boot::ShareSet`].
NotShareSetMember,
/// Not a member of the [boot::ManifestSet].
/// Not a member of the [`boot::ManifestSet`].
NotManifestSetMember,
/// `qos_p256` Error wrapper.
P256Error(qos_p256::P256Error),
Expand Down
4 changes: 2 additions & 2 deletions src/qos_core/src/protocol/services/boot.rs
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ pub struct QuorumMember {
/// cryptographically guaranteed and thus should not be trusted without
/// verification.
pub alias: String,
/// P256Public as bytes
/// `P256Public` as bytes
#[serde(with = "qos_hex::serde")]
pub pub_key: Vec<u8>,
}
Expand Down Expand Up @@ -272,7 +272,7 @@ pub struct PatchSet {
#[cfg_attr(any(feature = "mock", test), derive(Default))]
pub struct Namespace {
/// The namespace. This should be unique relative to other namespaces the
/// organization running QuorumOs has.
/// organization running `QuorumOs` has.
pub name: String,
/// A monotonically increasing value, used to identify the order in which
/// manifests for this namespace have been created. This is used to prevent
Expand Down
2 changes: 1 addition & 1 deletion src/qos_host/src/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ impl HostOpts {
}

fn base_path(&self) -> Option<String> {
self.parsed.single(ENDPOINT_BASE_PATH).map(Clone::clone)
self.parsed.single(ENDPOINT_BASE_PATH).cloned()
}

#[cfg(feature = "vm")]
Expand Down

0 comments on commit b09f3c6

Please sign in to comment.