Skip to content

Commit

Permalink
shared: Move comments that break cbindgen to end of line
Browse files Browse the repository at this point in the history
Workaround-For: mozilla/cbindgen#1033
  • Loading branch information
chrysn committed Nov 25, 2024
1 parent 978f8e1 commit c95dffb
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions shared/src/cred.rs
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,10 @@ impl From<u8> for IdCredType {
/// ```rust
/// # use hexlit::hex;
/// # use lakers_shared::IdCred;
/// let short_kid = IdCred::from_encoded_value(&hex!("17" /* 23 */)).unwrap();
/// assert_eq!(short_kid.as_full_value(), &hex!("a1044117" /* { 4: h'17' } */));
/// let long_kid = IdCred::from_encoded_value(&hex!("4161" /* 'a' */)).unwrap();
/// assert_eq!(long_kid.as_full_value(), &hex!("a1044161" /* { 4: 'a' } */));
/// let short_kid = IdCred::from_encoded_value(&hex!("17")).unwrap(); // 23
/// assert_eq!(short_kid.as_full_value(), &hex!("a1044117" /* { 4: h'17' } */)); // {4: h'17'}
/// let long_kid = IdCred::from_encoded_value(&hex!("4161")).unwrap(); // 'a'
/// assert_eq!(long_kid.as_full_value(), &hex!("a1044161")); // {4: 'a'}
/// ```
#[derive(Clone, Copy, Debug, Default, PartialEq)]
#[repr(C)]
Expand Down

0 comments on commit c95dffb

Please sign in to comment.