mirror of
https://github.com/Drop-OSS/drop-app.git
synced 2025-11-15 17:21:19 +10:00
* feat: add clippy ci * fix: clippy errors * fix: ci/cd * fix: update ci packages * fix: add gtk3 to ci deps * fix: add webkit to ci deps * fix: ci deps and perms * fix: add clippy settings to lib.rs
19 lines
460 B
Rust
19 lines
460 B
Rust
use std::fmt::Display;
|
|
|
|
use serde_with::SerializeDisplay;
|
|
|
|
#[derive(SerializeDisplay)]
|
|
pub enum LibraryError {
|
|
MetaNotFound(String),
|
|
}
|
|
impl Display for LibraryError {
|
|
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
|
match self {
|
|
LibraryError::MetaNotFound(id) => write!(
|
|
f,
|
|
"Could not locate any installed version of game ID {id} in the database"
|
|
),
|
|
}
|
|
}
|
|
}
|