Skip to content

Commit

Permalink
Fix Result not fully-qualified causing errors when ambiguous
Browse files Browse the repository at this point in the history
  • Loading branch information
sagebind committed Sep 26, 2021
1 parent 2e3fbdf commit 8344d80
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "castaway"
version = "0.1.0"
version = "0.1.1"
description = "Safe, zero-cost downcasting for limited compile-time specialization."
authors = ["Stephen M. Coakley <[email protected]>"]
license = "MIT"
Expand Down
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ macro_rules! cast {
// thus are preferred by the compiler if applicable.
let value = $value;
let token = CastToken::of_val(&value);
let result: Result<$T, _> = (&&&token).try_cast(value);
let result: ::core::result::Result<$T, _> = (&&&token).try_cast(value);

result
}};
Expand Down

0 comments on commit 8344d80

Please sign in to comment.