Skip to content

Commit aecd616

Browse files
committed
Fix cargo doc warnings
1 parent 4c82709 commit aecd616

File tree

3 files changed

+14
-5
lines changed

3 files changed

+14
-5
lines changed

mithril-aggregator/src/certificate_creator.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@ pub enum CertificateCreationError {
1414
Codec(String),
1515
}
1616

17-
/// Define a way to create a [Certificate]
17+
/// Define a way to create a [Certificate][mithril_common::entities::Certificate]
1818
pub trait CertificateCreator {
19-
/// Create a [Certificate]
19+
/// Create a [Certificate][mithril_common::entities::Certificate]
2020
fn create_certificate(
2121
working: &WorkingCertificate,
2222
signatures_party_ids: &[PartyId],

mithril-common/src/entities/epoch.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,17 +33,17 @@ impl Epoch {
3333
Ok(Epoch(epoch_new as u64))
3434
}
3535

36-
/// Apply the [Self::SIGNER_EPOCH_RETRIEVAL_OFFSET] to this epoch
36+
/// Apply the [retrieval offset][Self::SIGNER_RETRIEVAL_OFFSET] to this epoch
3737
pub fn offset_to_signer_retrieval_epoch(&self) -> Result<Self, EpochError> {
3838
self.offset_by(Self::SIGNER_RETRIEVAL_OFFSET)
3939
}
4040

41-
/// Apply the [Self::NEXT_SIGNER_EPOCH_RETRIEVAL_OFFSET] to this epoch
41+
/// Apply the [next signer retrieval offset][Self::NEXT_SIGNER_RETRIEVAL_OFFSET] to this epoch
4242
pub fn offset_to_next_signer_retrieval_epoch(&self) -> Self {
4343
*self + Self::NEXT_SIGNER_RETRIEVAL_OFFSET
4444
}
4545

46-
/// Apply the [Self::SIGNER_EPOCH_RECORDING_OFFSET] to this epoch
46+
/// Apply the [recording offset][Self::SIGNER_RECORDING_OFFSET] to this epoch
4747
pub fn offset_to_recording_epoch(&self) -> Self {
4848
*self + Self::SIGNER_RECORDING_OFFSET
4949
}

mithril-common/src/test_utils/mod.rs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
1+
//! Test utilities
2+
//!
3+
//! They contains:
4+
//! * A Open Api Spec tester
5+
//! * Some precomputed fake data
6+
//! * A builder of [MithrilFixture] to generate signers alongside a stake distribution
7+
//!
8+
//! Note: Most of those tools are behind the `test_only` features.
9+
110
#[cfg(any(test, feature = "test_only"))]
211
pub mod apispec;
312
#[cfg(any(test, feature = "test_only"))]

0 commit comments

Comments
 (0)