Skip to content

Commit bdf341a

Browse files
committed
clippy
1 parent aea92a5 commit bdf341a

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

crates/bevy_ecs/src/storage/resource_non_send.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ use crate::storage::{ResourceData, Resources};
1212
use crate::system::{Resource, SystemParam};
1313
use crate::world::{unsafe_world_cell::UnsafeWorldCell, World};
1414

15-
/// A type that can be inserted into [`ThreadLocals`]. Unlike [`Resource`](crate::system::Resource),
16-
/// this does not require [`Send`] or [`Sync`].
15+
/// A type that can be inserted into [`ThreadLocals`]. Unlike [`Resource`], this does not require
16+
/// [`Send`] or [`Sync`].
1717
pub trait ThreadLocalResource: 'static {}
1818

1919
/// Storage for registered [`ThreadLocalResource`] values.

crates/bevy_winit/src/accessibility.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ use bevy_window::{PrimaryWindow, Window, WindowClosed};
2828
/// Maps each window entity to its `AccessKit` [`Adapter`].
2929
///
3030
/// **Note:** This is a [`ThreadLocalResource`] because the macOS implementation of [`Adapter`]
31-
/// is not [`Send`](Send).
31+
/// is not [`Send`].
3232
#[derive(ThreadLocalResource, Default, Deref, DerefMut)]
3333
pub struct AccessKitAdapters(pub HashMap<Entity, Adapter>);
3434

crates/bevy_winit/src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
#![warn(missing_docs)]
33
//! `bevy_winit` provides utilities to create and manage windows through [`winit`]
44
//!
5-
//! The [`WinitPlugin`] is one of the [`DefaultPlugins`]. It registers an [`App`](bevy_app::App)
6-
//! runner that manages the [`App`](bevy_app::App) using an [`EventLoop`](winit::event_loop::EventLoop).
5+
//! The [`WinitPlugin`] is one of the [`DefaultPlugins`]. It registers an [`App`]
6+
//! runner that manages the [`App`] using an [`EventLoop`](winit::event_loop::EventLoop).
77
//!
88
//! [`DefaultPlugins`]: https://docs.rs/bevy/latest/bevy/struct.DefaultPlugins.html
99

crates/bevy_winit/src/winit_windows.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ pub struct WinitWindows {
5050
pub windows: HashMap<winit::window::WindowId, winit::window::Window>,
5151
/// Two-way mapping between [`Entity`] and [`WindowId`](winit::window::WindowId).
5252
map: WinitWindowEntityMap,
53-
/// Cached copy of the last-known [`Window`](bevy_window::Window) properties.
53+
/// Cached copy of the last-known [`Window`] properties.
5454
///
5555
/// This copy is needed because some `winit` events require immediate handling, but the
5656
/// [`App`](bevy_app::App) lives in a different thread.

0 commit comments

Comments
 (0)