Skip to content

Commit

Permalink
Correctly re-export TryFrom/TryInto
Browse files Browse the repository at this point in the history
  • Loading branch information
jhpratt committed Apr 20, 2020
1 parent b9def01 commit 867c481
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 6 deletions.
7 changes: 5 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,15 @@ Versioning].

Nothing yet.

## 0.2.4 [2020-04-20]
## 0.2.5 [2020-04-20]

- `TryFrom` identity is implemented for some primitives.
- `TryFrom`, `TryInto` and correctly re-exported.
- `TryFromIntError` has been moved to `mod num`.

## 0.2.4 [2020-04-20]

- `TryFrom` identity is implemented for some primitives.

## 0.2.3 [2020-04-18]

Embedded and `#![no_std]` now have full support and are checked in CI.
Expand Down
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "standback"
version = "0.2.4"
version = "0.2.5"
authors = ["Jacob Pratt <the.z.cuber@gmail.com>", "The Rust Project Developers"]
edition = "2018"
repository = "https://github.com/jhpratt/standback"
Expand Down
12 changes: 9 additions & 3 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -461,9 +461,15 @@ pub mod convert {
pub use core::convert::Infallible;

#[cfg(before_1_34)]
pub use crate::v1_34::{TryFrom, TryFromIntError, TryInto};
#[cfg(after_1_34)]
pub use core::convert::{TryFrom, TryFromIntError, TryInto};
pub use crate::v1_34::{TryFrom, TryInto};
#[cfg(since_1_34)]
pub use core::convert::{TryFrom, TryInto};
}
pub mod num {
#[cfg(before_1_34)]
pub use crate::v1_34::TryFromIntError;
#[cfg(since_1_34)]
pub use core::num::TryFromIntError;
}
pub mod iter {
#[cfg(before_1_36)]
Expand Down

0 comments on commit 867c481

Please sign in to comment.