Skip to content
This repository has been archived by the owner on Oct 21, 2022. It is now read-only.

Commit

Permalink
Cleanup / Compat. breaking (#306)
Browse files Browse the repository at this point in the history
* Rename variant

* Bump crate minor version
  • Loading branch information
chevdor authored Jul 28, 2021
1 parent 25c18d4 commit 29dc61b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "parity-wasm"
version = "0.42.2"
version = "0.43.0"
authors = ["Nikolay Volf <nikvolf@gmail.com>", "Svyatoslav Nikolsky <svyatonik@yandex.ru>", "Sergey Shulepov <s.pepyakin@gmail.com>"]
license = "MIT/Apache-2.0"
readme = "README.md"
Expand Down
6 changes: 3 additions & 3 deletions src/io.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ pub enum Error {
InvalidData,

#[cfg(feature = "std")]
IoError(std::io::Error),
Io(std::io::Error),
}

/// IO specific Result.
Expand Down Expand Up @@ -84,14 +84,14 @@ impl Write for alloc::vec::Vec<u8> {
impl<T: io::Read> Read for T {
fn read(&mut self, buf: &mut [u8]) -> Result<()> {
self.read_exact(buf)
.map_err(Error::IoError)
.map_err(Error::Io)
}
}

#[cfg(feature = "std")]
impl<T: io::Write> Write for T {
fn write(&mut self, buf: &[u8]) -> Result<()> {
self.write_all(buf).map_err(Error::IoError)
self.write_all(buf).map_err(Error::Io)
}
}

Expand Down

0 comments on commit 29dc61b

Please sign in to comment.