mirror of
https://github.com/LGUG2Z/komorebi.git
synced 2026-12-01 04:34:11 +01:00
fix(lint): build errors with Report::msg, not the eyre! macro the workspace bans
The ban (`just lint`, and now the hygiene job) came from the macOS and KDE repositories and was never applied to the Windows code, so the unified tree had sixteen uses of the macro: seven in the Windows daemon, six in komorebi-core (written during the unification), one in the KDE backend and two in the recorder. Each becomes eyre::Report::msg, with format! where the message has arguments.
This commit is contained in:
1 parent
416cda802d
commit
658827fcd5
10 files changed
+27
-19
No files matched your search
@@ -850,7 +850,7 @@ impl komorebi_backend::Backend for KWinBackend {
|
||||
fn monitors(&self) -> komorebi_backend::Result<Vec<komorebi_backend::MonitorInfo>> {
|
||||
let monitors = self.shared.table.lock().monitors();
|
||||
if monitors.is_empty() {
|
||||
return Err(platform(eyre::eyre!("KWin reported no outputs")));
|
||||
return Err(platform(eyre::Report::msg("KWin reported no outputs")));
|
||||
}
|
||||
Ok(monitors.into_iter().map(Into::into).collect())
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user