tsk-205: Put functions within a util module #235

Merged
kdeng00 merged 4 commits from tsk-205 into main 2025-11-01 14:32:54 -04:00
Showing only changes of commit 32d14f8df0 - Show all commits
+1 -3
View File
@@ -423,12 +423,10 @@ mod tests {
}
mod util {
use std::usize;
pub async fn resp_to_bytes(
response: axum::response::Response,
) -> Result<axum::body::Bytes, axum::Error> {
axum::body::to_bytes(response.into_body(), usize::MAX).await
axum::body::to_bytes(response.into_body(), std::usize::MAX).await
}
pub async fn get_resp_data<Data>(response: axum::response::Response) -> Data