Created
July 30, 2018 16:49
-
-
Save kinggoesgaming/2af3ec3fb0f8affcf34b3f10f66e7570 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
impl str::FromStr for Uuid { | |
type Err = parser::UuidParseError; | |
fn from_str(uuid_str: &str) -> Result<Uuid, Self::Err> { | |
Uuid::parse_str(uuid_str) | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Compiling uuid v0.6.5 (file:///home/developer/src/uuid) | |
error[E0106]: missing lifetime specifier | |
--> src/core_support.rs:58:16 | |
| | |
58 | type Err = parser::UuidParseError; | |
| ^^^^^^^^^^^^^^^^^^^^^^ expected lifetime parameter | |
error: aborting due to previous error | |
error: Could not compile `uuid`. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pub enum UuidParseError<'a> { | |
... | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment