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

Autogen Bug Fixes to Rust Code #706

Merged
merged 14 commits into from
Jun 8, 2020
Merged

Conversation

aleph-v
Copy link
Contributor

@aleph-v aleph-v commented Jun 5, 2020

  • Tag the PR with wip while in development.
  • Assign yourself as to the PR
  • Assign relevant labels such as bug, enhancement.
  • Request reviews if the PR is large, complex or you would like an extra pair of eyes to go over it.
  • Add tests to cover changes as needed.
  • Update documentation as needed.
  • Add new entries to the Changelog.md.
  • Update version numbers as needed.

Semver: https://github.com/rust-lang/rfcs/blob/master/text/1105-api-evolution.md

https://semver.org/

@aleph-v aleph-v changed the title Autogen bug fixes with only rust file changes Autogen Bug Fixes to Rust Code Jun 5, 2020
Copy link
Contributor

@z2trillion z2trillion left a comment

Choose a reason for hiding this comment

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

Did you mean to rename .gitignore -> .gitnore?

let path = Path::new(&name);
let display = path.display();
let mut file = match File::create(&path) {
Err(why) => panic!("couldn't create {}: {}", display, why.to_string()),
Ok(file) => file,
};

println!("{}: {:?}", index, periodic);
// println!("{}: {:?}", index, periodic);
Copy link
Contributor

Choose a reason for hiding this comment

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

Can you just remove this?

) -> Result<(), std::io::Error> {
let name = format!("contracts/{}.sol", name);
let name = format!("{}/{}.sol", output_directory, name);
Copy link
Contributor

Choose a reason for hiding this comment

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

Can you add a TODO to use this https://doc.rust-lang.org/std/path/struct.Path.html?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants