diff options
author | Matthias Beyer <mail@beyermatthias.de> | 2021-12-07 14:47:06 +0100 |
---|---|---|
committer | Matthias Beyer <mail@beyermatthias.de> | 2021-12-07 14:47:06 +0100 |
commit | d8f230de7ea01237112ea280d99756d6142d272b (patch) | |
tree | 32da57d3920491e473ebe0e6dc1782da4346f5c4 /src | |
parent | 2fa44701955cd42b450168776b135dbd24ef009e (diff) |
Fix: Remove unused argument
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
Diffstat (limited to 'src')
-rw-r--r-- | src/profile/mod.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/profile/mod.rs b/src/profile/mod.rs index 6ec14c3..3438793 100644 --- a/src/profile/mod.rs +++ b/src/profile/mod.rs @@ -24,7 +24,7 @@ impl Profile { let keypair = ipfs::Keypair::generate_ed25519(); let options = ipfs::IpfsOptions { - ipfs_path: Self::ipfs_path(state_dir, name).await?, + ipfs_path: Self::ipfs_path(state_dir).await?, keypair, bootstrap, mdns, @@ -70,7 +70,7 @@ impl Profile { client.post_text_node(vec![], text).await } - async fn ipfs_path(state_dir: &StateDir, name: &str) -> Result<PathBuf> { + async fn ipfs_path(state_dir: &StateDir) -> Result<PathBuf> { let path = state_dir.ipfs(); tokio::fs::create_dir_all(&path).await?; Ok(path) @@ -129,7 +129,7 @@ impl Profile { log::debug!("Configuring IPFS backend"); let options = ipfs::IpfsOptions { - ipfs_path: Self::ipfs_path(&state_dir_path, name).await?, + ipfs_path: Self::ipfs_path(&state_dir_path).await?, keypair, bootstrap, mdns, |