format: libpaket.utils

This commit is contained in:
jane400 2024-08-18 18:11:23 +02:00 committed by jane400
parent 06c9342ea7
commit 8573be6e23

View file

@ -20,7 +20,8 @@ impl CookieHeaderValueBuilder {
} }
pub fn add_dhlcs(mut self, dhli: &DHLIdToken) -> Self { pub fn add_dhlcs(mut self, dhli: &DHLIdToken) -> Self {
self.list.push(("dhlcs".to_string(), dhli.get_dhlcs().to_string())); self.list
.push(("dhlcs".to_string(), dhli.get_dhlcs().to_string()));
self self
} }
@ -54,7 +55,7 @@ macro_rules! mini_assert_api_eq {
if $a != $b { if $a != $b {
return Err(crate::LibraryError::APIChange); return Err(crate::LibraryError::APIChange);
} }
} };
} }
macro_rules! mini_assert_api { macro_rules! mini_assert_api {
@ -62,9 +63,8 @@ macro_rules! mini_assert_api {
if !$a { if !$a {
return Err(crate::LibraryError::APIChange); return Err(crate::LibraryError::APIChange);
} }
};
} }
}
macro_rules! mini_assert_inval { macro_rules! mini_assert_inval {
($a: expr) => { ($a: expr) => {