From 35a28a257644483495ac2bd6a5fb1e109e8c1f26 Mon Sep 17 00:00:00 2001 From: srdusr <99972264+srdusr@users.noreply.github.com> Date: Sat, 3 Aug 2024 20:07:00 +0200 Subject: Fix doc-comment file references left stale by today's six module splits ~17 comments across the codebase still pointed at udev.rs/winit.rs/ state.rs by their old flat-file names after those became udev/, winit/, state/ directories - found while auditing what this work rushed, since the split verification (function/struct-name diffing, full test suite) checked structural correctness but never comment accuracy. Updated each to either the specific new file (e.g. "see state.rs's REPEAT_DELAY" -> "see state/mod.rs's REPEAT_DELAY", "udev.rs's monitors()" -> "udev/platform.rs's monitors()") or the bare module name where the reference was already generic ("the udev/winit backends", not a specific location). --- crates/wayland/src/rounded_corners.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'crates/wayland/src/rounded_corners.rs') diff --git a/crates/wayland/src/rounded_corners.rs b/crates/wayland/src/rounded_corners.rs index 90f9afb..25fc199 100644 --- a/crates/wayland/src/rounded_corners.rs +++ b/crates/wayland/src/rounded_corners.rs @@ -26,7 +26,7 @@ //! subsurface tree through a shape mask is real additional work belonging //! to a follow-up, not this pass. `elements::surface_content_elements` //! (plain, unrounded, subsurface-aware) stays the fallback - see this -//! module's own call site in `winit.rs`. +//! module's own call site in `winit/render.rs`. use smithay::backend::renderer::element::texture::TextureRenderElement; use smithay::backend::renderer::element::Kind; @@ -37,17 +37,17 @@ use smithay::backend::renderer::Renderer; use smithay::reexports::wayland_server::protocol::wl_surface::WlSurface; use smithay::utils::Point; -// `winit.rs`'s `custom_elements` element type. `crate::elements:: +// `winit/render.rs`'s `custom_elements` element type. `crate::elements:: // OverlayElement` already covers everything the render loop // draws (cursor, decoration, borders, popups, plain content, layer-shell // surfaces) but can't also carry `TextureShaderElement`: that type only // implements `RenderElement`, not the generic `RenderElement` // every `OverlayElement` variant needs (`OverlayElement`, -// used identically by `udev.rs`, would stop compiling the moment a +// used identically by `udev`, would stop compiling the moment a // GLES-only variant were added to the shared enum). Wrapping the whole // existing enum as one variant here, concrete to `GlesRenderer` from the // start (`<=GlesRenderer>`, not ``), sidesteps that without touching -// the shared type at all - `udev.rs` never sees this module. +// the shared type at all - `udev` never sees this module. smithay::backend::renderer::element::render_elements! { pub(crate) WinitElement<=GlesRenderer>; Base=crate::elements::OverlayElement, -- cgit v1.2.3