INNER CODE UNIT · Rust

default

logannye/rosalind · crates/receipt-wasm/src/lib.rs:272

    fn default() -> Self {
        Self::new()
    }
}

fn optional_param(manifest: &RunManifest, key: &str) -> String {
    optional_string(manifest.params.get(key).map(String::as_str))
}

fn files_json(files: &[rosalind_receipt::FileHash]) -> String {
    let body = files
        .iter()
        .map(|file| {
            format!(
                "{{\"path\":\"{}\",\"blake3\":\"{}\"}}",
                json_escape(&file.path),
                json_escape(&file.blake3)
            )

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…