diff --git a/crates/rune-macros/defun.rs b/crates/rune-macros/defun.rs index b101e0ea..0b449c17 100644 --- a/crates/rune-macros/defun.rs +++ b/crates/rune-macros/defun.rs @@ -92,7 +92,8 @@ fn get_arg_conversion(args: &[ArgType]) -> Vec { } // &[Gc<..>] ArgType::Slice(gc) => { - let bind = quote! {crate::core::gc::Rt::bind_slice(&args[(#idx).min(args.len())..], cx)}; + let bind = + quote! {crate::core::gc::Rt::bind_slice(&args[(#idx).min(args.len())..], cx)}; match gc { Gc::Obj => bind, Gc::Other => quote! {crate::core::object::try_from_slice(#bind)?}, diff --git a/src/core/env/stack.rs b/src/core/env/stack.rs index 6f986eda..bf5f1381 100644 --- a/src/core/env/stack.rs +++ b/src/core/env/stack.rs @@ -1,11 +1,9 @@ -use std::ops::{Index, IndexMut, RangeTo}; - -use rune_macros::Trace; - use crate::core::{ gc::{Context, Rt}, object::{nil, GcObj}, }; +use rune_macros::Trace; +use std::ops::{Index, IndexMut, RangeTo}; #[derive(Debug, Default, Trace)] pub(crate) struct LispStack {