Skip to content

Commit 7d5cb69

Browse files
clippy
1 parent 2428f7a commit 7d5cb69

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

libs/llrt_json/src/stringify.rs

+7-7
Original file line numberDiff line numberDiff line change
@@ -186,11 +186,11 @@ fn run_replacer<'js>(
186186
value,
187187
))?;
188188

189-
return write_primitive2(context, add_comma, Some(new_value));
189+
write_primitive2(context, add_comma, Some(new_value))
190190
}
191191

192-
fn write_primitive<'a, 'js>(
193-
context: &mut StringifyContext<'a, 'js>,
192+
fn write_primitive<'js>(
193+
context: &mut StringifyContext<'_, 'js>,
194194
add_comma: bool,
195195
) -> Result<PrimitiveStatus<'js>> {
196196
if let Some(replacer_fn) = context.replacer_fn {
@@ -200,8 +200,8 @@ fn write_primitive<'a, 'js>(
200200
write_primitive2(context, add_comma, None)
201201
}
202202

203-
fn write_primitive2<'a, 'js>(
204-
context: &mut StringifyContext<'a, 'js>,
203+
fn write_primitive2<'js>(
204+
context: &mut StringifyContext<'_, 'js>,
205205
add_comma: bool,
206206
new_value: Option<Value<'js>>,
207207
) -> Result<PrimitiveStatus<'js>> {
@@ -414,8 +414,8 @@ fn get_key_or_index<'a>(
414414
key.unwrap_or_else(|| itoa_buffer.format(index.unwrap_or_default()))
415415
}
416416

417-
fn iterate<'a, 'js>(
418-
context: &mut StringifyContext<'a, 'js>,
417+
fn iterate<'js>(
418+
context: &mut StringifyContext<'_, 'js>,
419419
new_value: Option<Value<'js>>,
420420
) -> Result<()> {
421421
let mut add_comma;

0 commit comments

Comments
 (0)