Skip to content

Commit

Permalink
Add missing doc comments & enable missing_docs lint.
Browse files Browse the repository at this point in the history
  • Loading branch information
briansmith committed Feb 5, 2016
1 parent 0a99c59 commit 78b6892
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/digest.rs
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ pub struct Context {
pending: [u8; MAX_BLOCK_LEN],
num_pending: usize,

/// The context's algorithm.
pub algorithm: &'static Algorithm,
}

Expand Down
3 changes: 2 additions & 1 deletion src/hmac.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2015 Brian Smith.
// Copyright 2015-2016 Brian Smith.
//
// Permission to use, copy, modify, and/or distribute this software for any
// purpose with or without fee is hereby granted, provided that the above
Expand Down Expand Up @@ -218,6 +218,7 @@ impl SigningKey {
key
}

/// The digest algorithm for the key.
pub fn digest_algorithm(&self) -> &'static digest::Algorithm {
self.ctx_prototype.inner.algorithm()
}
Expand Down
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@
#![allow(
missing_copy_implementations,
missing_debug_implementations,
missing_docs, // TODO
)]
#![deny(
const_err,
Expand All @@ -41,6 +40,7 @@
fat_ptr_transmutes,
improper_ctypes,
match_of_unit_variant_via_paren_dotdot,
missing_docs,
mutable_transmutes,
no_mangle_const_items,
non_camel_case_types,
Expand Down

0 comments on commit 78b6892

Please sign in to comment.