Skip to content

Use newly stablized TryFrom trait for primitive-types#127

Merged
ordian merged 2 commits into
masterfrom
sp-try-from
Apr 24, 2019
Merged

Use newly stablized TryFrom trait for primitive-types#127
ordian merged 2 commits into
masterfrom
sp-try-from

Conversation

@sorpaas
Copy link
Copy Markdown
Contributor

@sorpaas sorpaas commented Apr 24, 2019

Remove custom TryFrom/TryInto/Never and use stable TryFrom.

Comment thread primitive-types/src/lib.rs Outdated
mod error;

pub use error::{Error, TryFrom, TryInto, Never};
#![cfg(feature = "std")]
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is this really correct?
why enforce feature = std in the crate?

I guess it should be #[cfg(feature = "std")]?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I tested in edition 2015 #[cfg(feature = "std")] is still necessary, otherwise compiler would complain core being reimported when building no_std.

@ordian ordian merged commit f034815 into master Apr 24, 2019
@ordian ordian deleted the sp-try-from branch April 24, 2019 18:59
ordian added a commit that referenced this pull request May 6, 2019
* master:
  Bump fixed-hash to 0.3.2 (#134)
  Use EntropyRng instead of OsRng (#130)
  Bump parity-crypto to 0.3.1 (#132)
  rust-crypto dependency removal (#85)
  Use newly stablized TryFrom trait for primitive-types (#127)
  change dependencies of `keccak-hash`and `trie-standardmap` (#111)
  bring appveyor back (#118)
  Extract `should_replace` from Scoring and supply pooled txs from same sender (#116)
ordian added a commit that referenced this pull request May 6, 2019
* master:
  Bump fixed-hash to 0.3.2 (#134)
  Use EntropyRng instead of OsRng (#130)
  Bump parity-crypto to 0.3.1 (#132)
  rust-crypto dependency removal (#85)
  Use newly stablized TryFrom trait for primitive-types (#127)
ordian added a commit that referenced this pull request May 7, 2019
* master:
  uint: faster mul by u64 (#125)
  fix rocksdb block cache size (#122)
  uint: convert benchmarks to criterion  (#123)
  Bump fixed-hash to 0.3.2 (#134)
  Use EntropyRng instead of OsRng (#130)
  Bump parity-crypto to 0.3.1 (#132)
  rust-crypto dependency removal (#85)
  Use newly stablized TryFrom trait for primitive-types (#127)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants