From d397453193254935905250be791c5a0e2ec1f15b Mon Sep 17 00:00:00 2001 From: outfoxxed Date: Wed, 20 Sep 2023 22:55:16 -0700 Subject: [PATCH] Fix broken build --- flake.lock | 18 +++++++++--------- src/log.hpp | 5 +++-- 2 files changed, 12 insertions(+), 11 deletions(-) diff --git a/flake.lock b/flake.lock index 35bbf41..6758abc 100644 --- a/flake.lock +++ b/flake.lock @@ -9,11 +9,11 @@ "xdph": "xdph" }, "locked": { - "lastModified": 1694613741, - "narHash": "sha256-8lsnX497CIKn0M2KatYtDKzRyccxQfEpuQkBO0+tKVY=", + "lastModified": 1695237968, + "narHash": "sha256-n0K0iiXCdbw3l5+YTMb7ESJQXnXYoVUIzeTbHo5D1rE=", "owner": "hyprwm", "repo": "Hyprland", - "rev": "84f8f4d77ddf4b6c772459584234e1f8f9d5f2ce", + "rev": "1925e64c21811ce76e5059d7a063f968c2d3e98c", "type": "github" }, "original": { @@ -49,11 +49,11 @@ }, "nixpkgs": { "locked": { - "lastModified": 1693844670, - "narHash": "sha256-t69F2nBB8DNQUWHD809oJZJVE+23XBrth4QZuVd6IE0=", + "lastModified": 1694767346, + "narHash": "sha256-5uH27SiVFUwsTsqC5rs3kS7pBoNhtoy9QfTP9BmknGk=", "owner": "NixOS", "repo": "nixpkgs", - "rev": "3c15feef7770eb5500a4b8792623e2d6f598c9c1", + "rev": "ace5093e36ab1e95cb9463863491bee90d5a4183", "type": "github" }, "original": { @@ -118,11 +118,11 @@ ] }, "locked": { - "lastModified": 1694025408, - "narHash": "sha256-oJNhGfZH8Z2w3ztXdzsYVg32//cWEcPVDM3+tp/ZVfU=", + "lastModified": 1694628480, + "narHash": "sha256-Qg9hstRw0pvjGu5hStkr2UX1D73RYcQ9Ns/KnZMIm9w=", "owner": "hyprwm", "repo": "xdg-desktop-portal-hyprland", - "rev": "022469529c8bc95acf222dc5a62389b04c8b1205", + "rev": "8f45a6435069b9e24ebd3160eda736d7a391cbf2", "type": "github" }, "original": { diff --git a/src/log.hpp b/src/log.hpp index 60c30a1..d5aeeb6 100644 --- a/src/log.hpp +++ b/src/log.hpp @@ -3,6 +3,7 @@ #include template -void hy3_log(LogLevel level, const std::string& fmt, Args&&... args) { - Debug::log(level, "[hy3] " + fmt, args...); +void hy3_log(LogLevel level, std::format_string fmt, Args&&... args) { + auto msg = std::vformat(fmt.get(), std::make_format_args(args...)); + Debug::log(level, "[hy3] {}", msg); }