From cc68d847ace203afcaac5937c39f3d664e34f0d5 Mon Sep 17 00:00:00 2001 From: chrysn Date: Mon, 25 Nov 2024 17:48:36 +0100 Subject: [PATCH] shared: Move comments that break cbindgen to end of line Workaround-For: https://github.com/mozilla/cbindgen/issues/1033 --- shared/src/cred.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/shared/src/cred.rs b/shared/src/cred.rs index 2d98c3d8..c24b1178 100644 --- a/shared/src/cred.rs +++ b/shared/src/cred.rs @@ -46,10 +46,10 @@ impl From 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'} +/// 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)]