File tree Expand file tree Collapse file tree 3 files changed +3
-5
lines changed Expand file tree Collapse file tree 3 files changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ name = "cidr"
33# also bump version in html_root_url in src/lib.rs
44version = " 0.2.3"
55edition = " 2021"
6- rust-version = " 1.77 "
6+ rust-version = " 1.81 "
77authors = [
" Stefan Bühler <[email protected] >" ]
88description = " IP network and IP host within network types"
99documentation = " https://docs.rs/cidr"
Original file line number Diff line number Diff line change 11//! Various error types returned by function in this crate
22
33use core:: {
4+ error:: Error ,
45 fmt,
56 net:: AddrParseError ,
67 num:: ParseIntError ,
78} ;
8- #[ cfg( feature = "std" ) ]
9- use std:: error:: Error ;
109
1110use crate :: Family ;
1211
@@ -37,7 +36,6 @@ impl fmt::Display for NetworkLengthTooLongError {
3736 }
3837}
3938
40- #[ cfg( feature = "std" ) ]
4139impl Error for NetworkLengthTooLongError {
4240 fn description ( & self ) -> & str {
4341 "network length too long"
Original file line number Diff line number Diff line change 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//!
You can’t perform that action at this time.
0 commit comments