Download loda-rust/rust_project/loda-rust-cli/src/postmine/postmine_error.rs from Alignment-Lab-AI/ARC-stuff: direct link, hf CLI and curl.
- Browser
- Download file 420 Bytes
-
https://huggingface.co/datasets/Alignment-Lab-AI/ARC-stuff/resolve/main/loda-rust/rust_project/loda-rust-cli/src/postmine/postmine_error.rs
- Command line
-
hf download hf://datasets/Alignment-Lab-AI/ARC-stuff/loda-rust/rust_project/loda-rust-cli/src/postmine/postmine_error.rs
-
curl -L -o postmine_error.rs https://huggingface.co/datasets/Alignment-Lab-AI/ARC-stuff/resolve/main/loda-rust/rust_project/loda-rust-cli/src/postmine/postmine_error.rs
420 Bytes
| use std::error::Error; | |
| use std::fmt; | |
| pub enum PostMineError { | |
| UnableToExtractFilenameFromPath, | |
| } | |
| impl fmt::Display for PostMineError { | |
| fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { | |
| match self { | |
| Self::UnableToExtractFilenameFromPath => | |
| write!(f, "Unable to extract filename from path"), | |
| } | |
| } | |
| } | |
| impl Error for PostMineError {} | |