Skip to content

Commit

Permalink
Formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
ambiguousname committed Nov 15, 2024
1 parent a2108a3 commit 486492a
Showing 1 changed file with 14 additions and 6 deletions.
20 changes: 14 additions & 6 deletions tool/src/demo_gen/terminus.rs
Original file line number Diff line number Diff line change
Expand Up @@ -391,9 +391,13 @@ impl<'ctx, 'tcx> RenderTerminusContext<'ctx, 'tcx> {
self.module_name.clone(),
self.relative_import_path.clone(),
));

let owned_type = format!("{}{}",
node.owning_param.as_ref().map(|o| {format!("{o}:")}).unwrap_or_default(),

let owned_type = format!(
"{}{}",
node.owning_param
.as_ref()
.map(|o| { format!("{o}:") })
.unwrap_or_default(),
param_name
);

Expand Down Expand Up @@ -444,9 +448,13 @@ impl<'ctx, 'tcx> RenderTerminusContext<'ctx, 'tcx> {
self.module_name.clone(),
self.relative_import_path.clone(),
));

let owned_type = format!("{}{}",
node.owning_param.as_ref().map(|o| {format!("{o}:")}).unwrap_or_default(),

let owned_type = format!(
"{}{}",
node.owning_param
.as_ref()
.map(|o| { format!("{o}:") })
.unwrap_or_default(),
param_name
);

Expand Down

0 comments on commit 486492a

Please sign in to comment.