chore: checkpoint before Python removal

This commit is contained in:
2026-03-26 22:33:59 +00:00
parent 683cec9307
commit e568ddf82a
29972 changed files with 11269302 additions and 2 deletions

21
vendor/tower/src/util/optional/error.rs vendored Normal file
View File

@@ -0,0 +1,21 @@
use std::{error, fmt};
/// Error returned if the inner [`Service`] has not been set.
///
/// [`Service`]: crate::Service
#[derive(Debug)]
pub struct None(());
impl None {
pub(crate) fn new() -> None {
None(())
}
}
impl fmt::Display for None {
fn fmt(&self, fmt: &mut fmt::Formatter) -> fmt::Result {
write!(fmt, "None")
}
}
impl error::Error for None {}