Skip to content

Commit e3a9a0b

Browse files
committed
fmt
1 parent 22cfb0b commit e3a9a0b

File tree

1 file changed

+15
-3
lines changed

1 file changed

+15
-3
lines changed

librubyfmt/src/render_targets.rs

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,11 @@ impl<'src> BaseQueue<'src> {
4949

5050
pub trait AbstractTokenTarget<'src>: std::fmt::Debug {
5151
fn push(&mut self, lt: AbstractLineToken<'src>);
52-
fn insert_at(&mut self, idx: usize, tokens: Box<dyn Iterator<Item = AbstractLineToken<'src>> + '_>);
52+
fn insert_at(
53+
&mut self,
54+
idx: usize,
55+
tokens: Box<dyn Iterator<Item = AbstractLineToken<'src>> + '_>,
56+
);
5357
fn into_tokens(self, ct: ConvertType) -> Vec<ConcreteLineTokenAndTargets<'src>>;
5458
fn is_multiline(&self) -> bool;
5559
fn push_line_number(&mut self, number: LineNumber);
@@ -108,7 +112,11 @@ impl<'src> AbstractTokenTarget<'src> for BreakableEntry<'src> {
108112
self.tokens.push(lt);
109113
}
110114

111-
fn insert_at(&mut self, idx: usize, tokens: Box<dyn Iterator<Item = AbstractLineToken<'src>> + '_>) {
115+
fn insert_at(
116+
&mut self,
117+
idx: usize,
118+
tokens: Box<dyn Iterator<Item = AbstractLineToken<'src>> + '_>,
119+
) {
112120
insert_at(idx, &mut self.tokens, tokens)
113121
}
114122

@@ -250,7 +258,11 @@ impl<'src> AbstractTokenTarget<'src> for BreakableCallChainEntry<'src> {
250258
self.tokens.push(lt);
251259
}
252260

253-
fn insert_at(&mut self, idx: usize, tokens: Box<dyn Iterator<Item = AbstractLineToken<'src>> + '_>) {
261+
fn insert_at(
262+
&mut self,
263+
idx: usize,
264+
tokens: Box<dyn Iterator<Item = AbstractLineToken<'src>> + '_>,
265+
) {
254266
insert_at(idx, &mut self.tokens, tokens)
255267
}
256268

0 commit comments

Comments
 (0)