We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 373175e commit 47980d9Copy full SHA for 47980d9
src/values/traits.rs
@@ -130,7 +130,7 @@ macro_rules! impl_try_from_basic_value_enum {
130
($value_name:ident) => (
131
impl TryFrom<BasicValueEnum> for $value_name {
132
type Error = &'static str;
133
-
+
134
fn try_from(value: BasicValueEnum) -> Result<Self, Self::Error> {
135
match value {
136
BasicValueEnum::$value_name(value) => Ok(value),
@@ -152,7 +152,7 @@ macro_rules! impl_try_from_basic_type_enum {
152
($type_name:ident) => (
153
impl TryFrom<BasicTypeEnum> for $type_name {
154
155
156
fn try_from(ty: BasicTypeEnum) -> Result<Self, Self::Error> {
157
match ty {
158
BasicTypeEnum::$type_name(ty) => Ok(ty),
0 commit comments