Skip to content

Commit 56fcbaa

Browse files
authored
Merge pull request #238 from weihanglo/opaque-repr
doc: state inner repr of `Source` is opaque
2 parents 010cd78 + 718f8ea commit 56fcbaa

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/lib.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,7 @@ mod errors;
117117
mod messages;
118118

119119
/// An "opaque" identifier for a package.
120+
///
120121
/// It is possible to inspect the `repr` field, if the need arises, but its
121122
/// precise format is an implementation detail and is subject to change.
122123
///
@@ -405,6 +406,9 @@ impl Package {
405406
}
406407

407408
/// The source of a package such as crates.io.
409+
///
410+
/// It is possible to inspect the `repr` field, if the need arises, but its
411+
/// precise format is an implementation detail and is subject to change.
408412
#[derive(Clone, Serialize, Deserialize, Debug, PartialEq, Eq)]
409413
#[serde(transparent)]
410414
pub struct Source {

0 commit comments

Comments
 (0)