Skip to content

Commit

Permalink
Upgrade to edition 2021 (#39)
Browse files Browse the repository at this point in the history
  • Loading branch information
Pratyush committed Jan 14, 2022
1 parent 9501c25 commit 4b907b6
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Expand Up @@ -14,7 +14,7 @@ jobs:
steps:

- name: Checkout
uses: actions/checkout@v1
uses: actions/checkout@v2
- name: Install Rust
uses: actions-rs/toolchain@v1
with:
Expand Down
3 changes: 1 addition & 2 deletions Cargo.toml
Expand Up @@ -10,8 +10,7 @@ keywords = [ "no_std" ]
categories = ["cryptography"]
include = ["Cargo.toml", "src", "README.md", "LICENSE-APACHE", "LICENSE-MIT"]
license = "MIT/Apache-2.0"
edition = "2018"
resolver = "2"
edition = "2021"

[dependencies]
rand = { version = "0.8", default-features = false, features = ["std_rng"]}
Expand Down
8 changes: 4 additions & 4 deletions src/io/mod.rs
Expand Up @@ -109,8 +109,8 @@ pub trait Read {
Ok(n) => {
let tmp = buf;
buf = &mut tmp[n..];
}
Err(ref e) if e.kind() == ErrorKind::Interrupted => {}
},
Err(ref e) if e.kind() == ErrorKind::Interrupted => {},
Err(e) => return Err(e),
}
}
Expand Down Expand Up @@ -204,9 +204,9 @@ pub trait Write {
ErrorKind::WriteZero,
"failed to write whole buffer",
))
}
},
Ok(n) => buf = &buf[n..],
Err(ref e) if e.kind() == ErrorKind::Interrupted => {}
Err(ref e) if e.kind() == ErrorKind::Interrupted => {},
Err(e) => return Err(e),
}
}
Expand Down

0 comments on commit 4b907b6

Please sign in to comment.