mirror of
https://github.com/arnaucube/testudo.git
synced 2026-02-01 08:46:41 +01:00
initial commit
This commit is contained in:
15
src/errors.rs
Normal file
15
src/errors.rs
Normal file
@@ -0,0 +1,15 @@
|
||||
use std::fmt;
|
||||
|
||||
pub struct ProofVerifyError;
|
||||
|
||||
impl fmt::Display for ProofVerifyError {
|
||||
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
|
||||
write!(f, "Proof verification failed")
|
||||
}
|
||||
}
|
||||
|
||||
impl fmt::Debug for ProofVerifyError {
|
||||
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
|
||||
write!(f, "{{ file: {}, line: {} }}", file!(), line!())
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user