Skip to content

Commit

Permalink
Fix: Do not return Result if theres nothing that can fail
Browse files Browse the repository at this point in the history
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
  • Loading branch information
matthiasbeyer committed Nov 16, 2022
1 parent ec58248 commit ac9b424
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions banyan-utils/src/ipfs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -135,8 +135,8 @@ pub fn block_put(data: &[u8], codec: u64, pin: bool) -> Result<Cid> {
pub struct IpfsStore;

impl IpfsStore {
pub fn new() -> anyhow::Result<Self> {
Ok(Self)
pub fn new() -> Self {
Self
}
}

Expand Down

0 comments on commit ac9b424

Please sign in to comment.