Skip to content

Commit

Permalink
refactor: a few fixes to make clippy happy
Browse files Browse the repository at this point in the history
  • Loading branch information
rklaehn committed Oct 24, 2022
1 parent 6d4eaf0 commit aa769dd
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 5 deletions.
1 change: 0 additions & 1 deletion iroh-api/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,3 @@ thiserror = "1.0"

[dev-dependencies]
tempfile = "3.3.0"
tempdir = "0.3.7"
3 changes: 1 addition & 2 deletions iroh-resolver/src/unixfs_builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -683,7 +683,6 @@ mod tests {
use rand::prelude::*;
use rand_chacha::ChaCha8Rng;
use std::{collections::BTreeMap, io::prelude::*, sync::Arc};
use tempfile;
use tokio::io::AsyncReadExt;

#[tokio::test]
Expand Down Expand Up @@ -974,7 +973,7 @@ mod tests {
#[cfg(not(windows))]
#[tokio::test]
async fn symlink_from_disk_test() -> Result<()> {
let temp_dir = tempfile::tempdir()?;
let temp_dir = ::tempfile::tempdir()?;
let expect_name = "path_to_symlink";
let expect_target = temp_dir.path().join("path_to_target");
let expect_path = temp_dir.path().join(expect_name);
Expand Down
3 changes: 1 addition & 2 deletions iroh-store/src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,6 @@ impl Source for Config {
#[cfg(test)]
mod tests {
use super::*;
use config::Config as ConfigBuilder;

#[test]
#[cfg(all(feature = "rpc-grpc", unix))]
Expand Down Expand Up @@ -129,7 +128,7 @@ mod tests {
fn test_build_config_from_struct() {
let path = PathBuf::new().join("test");
let expect = Config::new_grpc(path);
let got: Config = ConfigBuilder::builder()
let got: Config = config::Config::builder()
.add_source(expect.clone())
.build()
.unwrap()
Expand Down

0 comments on commit aa769dd

Please sign in to comment.