mirror of
https://framagit.org/veretcle/scootaloo.git
synced 2025-07-20 17:11:19 +02:00
Compare commits
4 Commits
Author | SHA1 | Date | |
---|---|---|---|
![]() |
dab8725f99 | ||
![]() |
08368b2a73 | ||
![]() |
c6cdaa21b8 | ||
![]() |
99a6adc1f4 |
2
Cargo.lock
generated
2
Cargo.lock
generated
@@ -2016,7 +2016,7 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "scootaloo"
|
||||
version = "0.5.0"
|
||||
version = "0.5.2"
|
||||
dependencies = [
|
||||
"chrono",
|
||||
"clap",
|
||||
|
@@ -1,6 +1,6 @@
|
||||
[package]
|
||||
name = "scootaloo"
|
||||
version = "0.5.0"
|
||||
version = "0.5.2"
|
||||
authors = ["VC <veretcle+framagit@mateu.be>"]
|
||||
edition = "2021"
|
||||
|
||||
|
17
src/error.rs
17
src/error.rs
@@ -1,4 +1,7 @@
|
||||
use std::fmt;
|
||||
use std::{
|
||||
fmt::{Display, Formatter, Result},
|
||||
error::Error,
|
||||
};
|
||||
|
||||
#[derive(Debug)]
|
||||
pub struct ScootalooError {
|
||||
@@ -13,15 +16,11 @@ impl ScootalooError {
|
||||
}
|
||||
}
|
||||
|
||||
impl fmt::Display for ScootalooError {
|
||||
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
|
||||
impl Error for ScootalooError {}
|
||||
|
||||
impl Display for ScootalooError {
|
||||
fn fmt(&self, f: &mut Formatter) -> Result {
|
||||
write!(f, "{}", self.details)
|
||||
}
|
||||
}
|
||||
|
||||
impl std::error::Error for ScootalooError {
|
||||
fn description(&self) -> &str {
|
||||
&self.details
|
||||
}
|
||||
}
|
||||
|
||||
|
@@ -1,5 +1,5 @@
|
||||
mod error;
|
||||
use crate::error::ScootalooError;
|
||||
use error::ScootalooError;
|
||||
|
||||
mod config;
|
||||
use config::Config;
|
||||
|
Reference in New Issue
Block a user