Skip to content

Commit 9629dec

Browse files
committed
Error in core since rust 1.81
1 parent c5f5320 commit 9629dec

File tree

3 files changed

+3
-5
lines changed

3 files changed

+3
-5
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name = "cidr"
33
# also bump version in html_root_url in src/lib.rs
44
version = "0.2.3"
55
edition = "2021"
6-
rust-version = "1.77"
6+
rust-version = "1.81"
77
authors = ["Stefan Bühler <[email protected]>"]
88
description = "IP network and IP host within network types"
99
documentation = "https://docs.rs/cidr"

src/errors.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
11
//! Various error types returned by function in this crate
22
33
use core::{
4+
error::Error,
45
fmt,
56
net::AddrParseError,
67
num::ParseIntError,
78
};
8-
#[cfg(feature = "std")]
9-
use std::error::Error;
109

1110
use crate::Family;
1211

@@ -37,7 +36,6 @@ impl fmt::Display for NetworkLengthTooLongError {
3736
}
3837
}
3938

40-
#[cfg(feature = "std")]
4139
impl Error for NetworkLengthTooLongError {
4240
fn description(&self) -> &str {
4341
"network length too long"

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
//!
2929
//! # Feature `std`
3030
//!
31-
//! Enabled by default, used for [`std::error::Error`] implementations.
31+
//! Enabled by default, currently unused.
3232
//!
3333
//! # Feature `serde`
3434
//!

0 commit comments

Comments
 (0)