use thiserror::Error;
#[derive(Debug, Error)]
#[non_exhaustive]
pub enum ParseProjectIdentifierError {
#[error(
"the project identifier {identifier:?} is malformed, because an identifier holds 1 to 250 ASCII letters, digits, and hyphens, and does not name a device on Windows"
)]
#[non_exhaustive]
MalformedIdentifier {
identifier: String,
},
}
#[cfg(test)]
mod tests {
#![allow(clippy::missing_panics_doc)]
use super::*;
#[test]
fn parse_project_identifier_error_is_send_and_sync() {
fn assert_send_and_sync<T: Send + Sync>() {}
assert_send_and_sync::<ParseProjectIdentifierError>();
}
}