Skip to content

Commit

Permalink
error, version
Browse files Browse the repository at this point in the history
  • Loading branch information
feois committed Jun 21, 2024
1 parent 66977c2 commit eb28eb1
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "music-player"
version = "0.1.0"
version = "1.0.0"
edition = "2021"

[dependencies]
Expand Down
12 changes: 10 additions & 2 deletions src/lyrics.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

use std::time::Duration;
use std::{fmt::{Debug, Display}, time::Duration};
use serde_derive::*;


Expand Down Expand Up @@ -43,16 +43,24 @@ pub trait LyricsTrait {


pub struct Dummy;
#[derive(Debug)]
pub struct DummyError;

impl LyricsTrait for Dummy {
type Error = ();
type Error = DummyError;

#[inline(always)]
fn new(_pos: LyricsPosition) -> Result<Self, Self::Error> {
Ok(Self)
}
}

impl Display for DummyError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
Debug::fmt(&self, f)
}
}

#[cfg(feature = "xosd")]
mod xosd {
use super::*;
Expand Down

0 comments on commit eb28eb1

Please sign in to comment.