Skip to content

Commit

Permalink
satisfy clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
Charles Cunningham authored and Charles Cunningham committed Mar 17, 2022
1 parent fc4c5f5 commit fcc65c2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/orbit.rs
Expand Up @@ -195,7 +195,7 @@ impl Orbit {
})
}

async fn connect(&self, node: MultiaddrWithPeerId) -> anyhow::Result<()> {
pub async fn connect(&self, node: MultiaddrWithPeerId) -> anyhow::Result<()> {
self.service.store.ipfs.connect(node).await
}
}
Expand Down
4 changes: 2 additions & 2 deletions src/resource.rs
Expand Up @@ -107,7 +107,7 @@ impl FromStr for OrbitId {
fn from_str(s: &str) -> Result<Self, Self::Err> {
let s = s
.strip_prefix("kepler:")
.ok_or_else(|| KRIParseError::IncorrectForm)?;
.ok_or(KRIParseError::IncorrectForm)?;
let p = match s.find("://") {
Some(p) if p > 0 => p,
_ => return Err(Self::Err::IncorrectForm),
Expand Down Expand Up @@ -137,7 +137,7 @@ impl FromStr for ResourceId {
fn from_str(s: &str) -> Result<Self, Self::Err> {
let s = s
.strip_prefix("kepler:")
.ok_or_else(|| KRIParseError::IncorrectForm)?;
.ok_or(KRIParseError::IncorrectForm)?;
let p = match s.find("://") {
Some(p) if p > 0 => p,
_ => return Err(Self::Err::IncorrectForm),
Expand Down

0 comments on commit fcc65c2

Please sign in to comment.