mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-26 21:39:07 +00:00
Clippy
This commit is contained in:
parent
b5a963195b
commit
38d5ec374a
2 changed files with 4 additions and 4 deletions
|
@ -399,7 +399,7 @@ pub(crate) fn run_low_level<'a, 'ctx>(
|
|||
}
|
||||
}
|
||||
|
||||
crate::llvm::build_str::decode_from_utf8_result(env, layout_interner, result_ptr).into()
|
||||
crate::llvm::build_str::decode_from_utf8_result(env, layout_interner, result_ptr)
|
||||
}
|
||||
StrToUtf8 => {
|
||||
// Str.fromInt : Str -> List U8
|
||||
|
|
|
@ -25,9 +25,9 @@ pub(crate) enum RocStruct<'ctx> {
|
|||
ByReference(PointerValue<'ctx>),
|
||||
}
|
||||
|
||||
impl<'ctx> Into<BasicValueEnum<'ctx>> for RocStruct<'ctx> {
|
||||
fn into(self) -> BasicValueEnum<'ctx> {
|
||||
self.as_basic_value_enum()
|
||||
impl<'ctx> From<RocStruct<'ctx>> for BasicValueEnum<'ctx> {
|
||||
fn from(roc_struct: RocStruct<'ctx>) -> Self {
|
||||
roc_struct.as_basic_value_enum()
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue