Skip to content

Commit

Permalink
Updated toolchain to allow compilation.
Browse files Browse the repository at this point in the history
  • Loading branch information
kubaplas committed May 8, 2024
1 parent 32d9cb1 commit 5bb123c
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 10 deletions.
8 changes: 4 additions & 4 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
[package]
authors = [
"Jakub Płaskonka [email protected]",
"Krzysztof Pobiarżyn [email protected]",
"Maciej Zieliński [email protected]",
"Jakub Płaskonka [email protected]",
"Krzysztof Pobiarżyn [email protected]",
"Maciej Zieliński [email protected]",
]
license = "MIT"
repository = "https://github.com/odradev/cargo-odra"
description = "A cargo utility that helps to create, manage and test your smart contracts written using Odra framework."
keywords = ["wasm", "webassembly", "blockchain"]
categories = ["wasm", "smart contracts"]
name = "cargo-odra"
version = "0.0.9"
version = "0.0.9-fixed"
edition = "2021"

[dependencies]
Expand Down
2 changes: 1 addition & 1 deletion rust-toolchain
Original file line number Diff line number Diff line change
@@ -1 +1 @@
nightly-2023-03-01
nightly-2024-02-09
6 changes: 1 addition & 5 deletions src/command.rs
Original file line number Diff line number Diff line change
Expand Up @@ -180,11 +180,7 @@ pub fn write_to_file(path: PathBuf, content: &str) {

/// Appends a content to a file at the given path.
pub fn append_file(path: PathBuf, content: &str) {
let mut file = OpenOptions::new()
.write(true)
.append(true)
.open(path)
.unwrap();
let mut file = OpenOptions::new().append(true).open(path).unwrap();

file.write_all(content.as_bytes()).unwrap();
}
Expand Down

0 comments on commit 5bb123c

Please sign in to comment.