Explicit lifecycle that can be omitted

This commit is contained in:
binlingyu
2024-05-23 10:26:26 +08:00
committed by andy.boot
parent e78690e4f5
commit 1ffda38264
+1 -1
View File
@@ -573,7 +573,7 @@ mod tests {
} }
#[cfg(test)] #[cfg(test)]
fn build_draw_data<'a>(disp: &'a DisplayData, size: u32) -> (DrawData<'a>, DisplayNode) { fn build_draw_data(disp: &DisplayData, size: u32) -> (DrawData<'_>, DisplayNode) {
let n = DisplayNode { let n = DisplayNode {
name: PathBuf::from("/short"), name: PathBuf::from("/short"),
size: 2_u64.pow(size), size: 2_u64.pow(size),