From 6828361e41d3a03357b78cdb95d7b64274e22bb5 Mon Sep 17 00:00:00 2001 From: Bruce Mitchener Date: Sat, 9 Mar 2024 22:44:20 +0700 Subject: [PATCH] clippy: Fix remaining doc_markdown lints. (#509) --- .clippy.toml | 2 +- examples/simple/src/main.rs | 2 +- examples/with_winit/src/multi_touch.rs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.clippy.toml b/.clippy.toml index 0a8bf380e..91b13d7cf 100644 --- a/.clippy.toml +++ b/.clippy.toml @@ -1 +1 @@ -doc-valid-idents = ["WebGPU", "PostScript", ".."] +doc-valid-idents = ["MotionMark", "WebGPU", "PostScript", ".."] diff --git a/examples/simple/src/main.rs b/examples/simple/src/main.rs index 84b8822bc..b75b6e6c1 100644 --- a/examples/simple/src/main.rs +++ b/examples/simple/src/main.rs @@ -186,7 +186,7 @@ fn create_winit_window(event_loop: &winit::event_loop::EventLoopWindowTarget<()> ) } -/// Helper function that creates a vello Renderer for a given RenderContext and Surface +/// Helper function that creates a vello `Renderer` for a given `RenderContext` and `RenderSurface` fn create_vello_renderer(render_cx: &RenderContext, surface: &RenderSurface) -> Renderer { Renderer::new( &render_cx.devices[surface.dev_id].device, diff --git a/examples/with_winit/src/multi_touch.rs b/examples/with_winit/src/multi_touch.rs index aa9c6f97d..54d0a2fe4 100644 --- a/examples/with_winit/src/multi_touch.rs +++ b/examples/with_winit/src/multi_touch.rs @@ -1,7 +1,7 @@ // Copyright 2021 the egui Authors and the Vello Authors // SPDX-License-Identifier: Apache-2.0 OR MIT -/// Adapted from https://github.com/emilk/egui/blob/212656f3fc6b931b21eaad401e5cec2b0da93baa/crates/egui/src/input_state/touch_state.rs +/// Adapted from use std::{collections::BTreeMap, fmt::Debug}; use vello::kurbo::{Point, Vec2};