Skip to content

Commit 189f426

Browse files
committed
fix lints
1 parent 7b1a928 commit 189f426

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/chunks/tree.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ pub fn install_tree(
114114
hash_kind: HashKind,
115115
) -> Result<()> {
116116
use crate::chunks::network::install_chunks;
117-
use tokio::runtime::Runtime;
117+
use tokio::runtime;
118118

119119
let mut not_installed_chunks = Vec::new();
120120

@@ -125,7 +125,7 @@ pub fn install_tree(
125125
};
126126
}
127127

128-
let runtime = Runtime::new()?;
128+
let runtime = runtime::Builder::new_current_thread().build()?;
129129
runtime.block_on(install_chunks(
130130
&not_installed_chunks,
131131
mirrors,

src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,7 @@ fn repo_commands(path: &Path, command: RepoCommands) -> Result<()> {
312312

313313
update_manifest(repo_path, manifest_serialized, &signature.to_bytes())?;
314314
}
315-
};
315+
}
316316

317317
Ok(())
318318
}

0 commit comments

Comments
 (0)