Add stability markers for new impls
This commit is contained in:
parent
b61fddebb0
commit
f266f12f30
@ -342,12 +342,14 @@ impl FromStr for SocketAddr {
|
||||
#[derive(Debug, Clone, PartialEq)]
|
||||
pub struct AddrParseError(());
|
||||
|
||||
#[stable(feature = "addr_parse_error_error", since = "1.4.0")]
|
||||
impl fmt::Display for AddrParseError {
|
||||
fn fmt(&self, fmt: &mut fmt::Formatter) -> fmt::Result {
|
||||
fmt.write_str(self.description())
|
||||
}
|
||||
}
|
||||
|
||||
#[stable(feature = "addr_parse_error_error", since = "1.4.0")]
|
||||
impl Error for AddrParseError {
|
||||
fn description(&self) -> &str {
|
||||
"invalid IP address syntax"
|
||||
|
Loading…
x
Reference in New Issue
Block a user