Skip to content

Commit 2715159

Browse files
committed
Put doc comments before type attributes, as is customary
1 parent 1ce8041 commit 2715159

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

src/log.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
use crate::crypto::{Hash, PublicKey, Signature};
44

5-
#[derive(Debug, Clone, PartialEq)]
65
/// A signed tree head, as returned by the get-tree-head endpoint.
6+
#[derive(Debug, Clone, PartialEq)]
77
pub struct SignedTreeHead {
88
pub size: u64,
99
pub root_hash: Hash,
@@ -19,23 +19,23 @@ pub struct WitnessCosignature {
1919
pub cosignature: Signature,
2020
}
2121

22-
#[derive(Debug, Clone, PartialEq)]
2322
/// An inclusion proof, as returned by the get-inclusion-proof endpoint.
23+
#[derive(Debug, Clone, PartialEq)]
2424
pub struct InclusionProof {
2525
pub leaf_index: u64,
2626
pub node_hashes: Vec<Hash>,
2727
}
2828

29-
#[derive(Debug, Clone, PartialEq)]
3029
/// A protoleaf, which is the data submitted to the add-leaf endpoint of a Sigsum log.
30+
#[derive(Debug, Clone, PartialEq)]
3131
pub struct Protoleaf {
3232
pub message: Hash,
3333
pub signature: Signature,
3434
pub public_key: PublicKey,
3535
}
3636

37-
#[derive(Debug, Clone, PartialEq)]
3837
/// A tree leaf, as stored in a sigsum log.
38+
#[derive(Debug, Clone, PartialEq)]
3939
pub struct Leaf {
4040
pub digest: Hash,
4141
pub signature: Signature,

0 commit comments

Comments
 (0)