Skip to content

Commit

Permalink
Fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
CeleritasCelery committed Dec 16, 2023
1 parent 78926ab commit 82432fa
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
3 changes: 2 additions & 1 deletion crates/rune-macros/defun.rs
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,8 @@ fn get_arg_conversion(args: &[ArgType]) -> Vec<TokenStream> {
}
// &[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)?},
Expand Down
6 changes: 2 additions & 4 deletions src/core/env/stack.rs
Original file line number Diff line number Diff line change
@@ -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 {
Expand Down

0 comments on commit 82432fa

Please sign in to comment.