cli: fix macos build (#172712)

This commit is contained in:
Connor Peet 2023-01-28 17:43:32 -08:00 committed by GitHub
parent b5aa3e0a3d
commit 339fd630e6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -63,7 +63,7 @@ pub struct SleepInhibitor {
impl SleepInhibitor {
pub async fn new() -> io::Result<Self> {
let mut assertions = Vec::with_capacity(NUM_ASSERTIONS);
let assertion_name = CFString::from_static_string(concatcp!(TUNNEL_ACTIVITY_NAME));
let assertion_name = CFString::from_static_string(TUNNEL_ACTIVITY_NAME);
for typ in ASSERTIONS {
assertions.push(Assertion::make(
&CFString::from_static_string(typ),