Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

use this https://doc.rust-lang.org/std/path/struct.Path.html #708

Closed
recmo opened this issue Jun 8, 2020 · 0 comments
Closed

use this https://doc.rust-lang.org/std/path/struct.Path.html #708

recmo opened this issue Jun 8, 2020 · 0 comments
Assignees
Labels
refactor Improves the code quality tracker Issues generated from source comments

Comments

@recmo
Copy link
Contributor

recmo commented Jun 8, 2020

On 2020-06-08 @pvienhage wrote in 18f47a6 “Autogen Bug Fixes to Rust Code (#706)”:

use this https://doc.rust-lang.org/std/path/struct.Path.html

    periodic: &RationalExpression,
    index: usize,
    name: &str,
    output_directory: &str,
) -> Result<(), std::io::Error> {
    // TODO - use this https://doc.rust-lang.org/std/path/struct.Path.html
    let name = format!("{}/{}.sol", output_directory, name);
    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()),

From crypto/stark/src/solidity_verifier.rs:241

@recmo recmo added refactor Improves the code quality tracker Issues generated from source comments labels Jun 8, 2020
@recmo recmo closed this as completed Sep 24, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
refactor Improves the code quality tracker Issues generated from source comments
Projects
None yet
Development

No branches or pull requests

2 participants