Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
GuillaumeGomez committed Jan 16, 2025
1 parent ac72367 commit e98badc
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions rinja_derive/src/generator/expr.rs
Original file line number Diff line number Diff line change
Expand Up @@ -639,10 +639,16 @@ impl<'a> Generator<'a, '_> {
kind: &str,
) -> Result<DisplayWrap, CompileError> {
let [key] = args else {
return Err(ctx.generate_error(format_args!("{kind} only takes one argument, found {}", args.len()), node));
return Err(ctx.generate_error(
format_args!("{kind} only takes one argument, found {}", args.len()),
node,
));
};
let [gen] = generics else {
return Err(ctx.generate_error(format_args!("{kind} expects one generic, found {}", generics.len()), node));
return Err(ctx.generate_error(
format_args!("{kind} expects one generic, found {}", generics.len()),
node,
));
};
buf.write("rinja::helpers::get_value");
buf.write("::<");
Expand Down

0 comments on commit e98badc

Please sign in to comment.