Skip to content

Commit

Permalink
Replace Result<()> with Result (ordinals#657)
Browse files Browse the repository at this point in the history
  • Loading branch information
casey authored Oct 14, 2022
1 parent 37b4093 commit b876dce
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/arguments.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ pub(crate) struct Arguments {
}

impl Arguments {
pub(crate) fn run(self) -> Result<()> {
pub(crate) fn run(self) -> Result {
self.subcommand.run(self.options)
}
}
2 changes: 1 addition & 1 deletion src/subcommand.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ pub(crate) enum Subcommand {
}

impl Subcommand {
pub(crate) fn run(self, options: Options) -> Result<()> {
pub(crate) fn run(self, options: Options) -> Result {
match self {
Self::Epochs => epochs::run(),
Self::Find(find) => find.run(options),
Expand Down
2 changes: 1 addition & 1 deletion src/subcommand/find.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ pub(crate) struct Find {
}

impl Find {
pub(crate) fn run(self, options: Options) -> Result<()> {
pub(crate) fn run(self, options: Options) -> Result {
let index = Index::open(&options)?;

index.index()?;
Expand Down
2 changes: 1 addition & 1 deletion src/subcommand/index.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use super::*;

pub(crate) fn run(options: Options) -> Result<()> {
pub(crate) fn run(options: Options) -> Result {
let index = Index::open(&options)?;

index.index()?;
Expand Down
2 changes: 1 addition & 1 deletion src/subcommand/list.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ pub(crate) struct List {
}

impl List {
pub(crate) fn run(self, options: Options) -> Result<()> {
pub(crate) fn run(self, options: Options) -> Result {
let index = Index::open(&options)?;

index.index()?;
Expand Down
2 changes: 1 addition & 1 deletion src/subcommand/rune.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ pub(crate) enum Rune {
}

impl Rune {
pub(crate) fn run(self, options: Options) -> Result<()> {
pub(crate) fn run(self, options: Options) -> Result {
match self {
Self::Publish(publish) => publish.run(options),
}
Expand Down
2 changes: 1 addition & 1 deletion src/subcommand/wallet.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ pub(crate) enum Wallet {
}

impl Wallet {
pub(crate) fn run(self, options: Options) -> Result<()> {
pub(crate) fn run(self, options: Options) -> Result {
match self {
Self::Identify => identify::run(options),
Self::List => list::run(options),
Expand Down

0 comments on commit b876dce

Please sign in to comment.