@@ -37,10 +37,10 @@ macro_rules! stub_symbols {
3737}
3838
3939/// Result type returned from the [`run`] function.
40- pub type Result = anyhow :: Result < ( ) > ;
40+ pub type CrateResult = AResult < ( ) > ;
4141
4242/// Runs the CLI application. Returns nothing in a result on success.
43- pub fn run ( ) -> Result {
43+ pub fn run ( ) -> CrateResult {
4444 let mut args: Vec < _ > = std:: env:: args ( ) . collect ( ) ;
4545
4646 // When called as a cargo subcommand, the second argument given will be the
@@ -150,7 +150,7 @@ struct Stubs {
150150}
151151
152152impl Args {
153- pub fn handle ( self ) -> Result {
153+ pub fn handle ( self ) -> CrateResult {
154154 match self {
155155 Args :: Install ( install) => install. handle ( ) ,
156156 Args :: Remove ( remove) => remove. handle ( ) ,
@@ -160,7 +160,7 @@ impl Args {
160160}
161161
162162impl Install {
163- pub fn handle ( self ) -> Result {
163+ pub fn handle ( self ) -> CrateResult {
164164 let artifact = find_ext ( & self . manifest ) ?;
165165 let ext_path = build_ext ( & artifact, self . release ) ?;
166166
@@ -230,7 +230,7 @@ impl Install {
230230}
231231
232232impl Remove {
233- pub fn handle ( self ) -> Result {
233+ pub fn handle ( self ) -> CrateResult {
234234 use std:: env:: consts;
235235
236236 let artifact = find_ext ( & self . manifest ) ?;
@@ -296,7 +296,7 @@ impl Remove {
296296}
297297
298298impl Stubs {
299- pub fn handle ( self ) -> Result {
299+ pub fn handle ( self ) -> CrateResult {
300300 let ext_path = if let Some ( ext_path) = self . ext {
301301 ext_path
302302 } else {
0 commit comments