A fork of attic a self-hostable Nix Binary Cache server
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

client: Fix User-Agent formatting

+2 -2
+2 -2
client/src/api/mod.rs
··· 3 3 4 4 use anyhow::Result; 5 5 use bytes::Bytes; 6 - use const_format::concatcp; 6 + use const_format::formatcp; 7 7 use displaydoc::Display; 8 8 use futures::{ 9 9 future, ··· 27 27 28 28 /// The User-Agent string of Attic. 29 29 const ATTIC_USER_AGENT: &str = 30 - concatcp!("Attic/{} ({})", env!("CARGO_PKG_NAME"), ATTIC_DISTRIBUTOR); 30 + formatcp!("Attic/{} ({})", env!("CARGO_PKG_NAME"), ATTIC_DISTRIBUTOR); 31 31 32 32 /// The size threshold to send the upload info as part of the PUT body. 33 33 const NAR_INFO_PREAMBLE_THRESHOLD: usize = 4 * 1024; // 4 KiB