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