Skip to content
Snippets Groups Projects
Unverified Commit 60aa55a3 authored by Cheuk Pui Lam's avatar Cheuk Pui Lam
Browse files

clippy(client-brc): fixed clippy linting

parent cfe66238
No related branches found
No related tags found
No related merge requests found
......@@ -98,11 +98,11 @@ pub mod brc_tree {
}
hm
}
pub fn write_structure(&self, mut file: &std::fs::File) -> anyhow::Result<()>{
pub fn write_structure(&self, mut file: &std::fs::File) -> anyhow::Result<()> {
match &self.0 {
Some(node) => {
file.write(format!("{},{};", node.min, node.max).as_bytes())?;
file.write_all(format!("{},{};", node.min, node.max).as_bytes())?;
node.left.write_structure(file)?;
node.right.write_structure(file)?;
}
......
use std::collections::HashMap;
use std::io::Write;
use anyhow::{anyhow, Result};
use indexmap::IndexMap;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment