Skip to content

Commit 00904a9

Browse files
committed
clippy
1 parent 8883529 commit 00904a9

File tree

4 files changed

+8
-9
lines changed

4 files changed

+8
-9
lines changed

crates/bevy_text/src/font.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,12 +48,12 @@ impl Font {
4848
/// A reference to a font asset.
4949
#[derive(Clone, Debug, Reflect, FromReflect, Default)]
5050
pub enum FontRef {
51-
/// Use the "default" font for the current context. This default font is configurable with the FontConfig resource.
51+
/// Use the default font it can be configured with the [`DefaultFont`] resource
5252
#[default]
5353
Default,
54-
/// A handle to a shader stored in the [`Assets<Shader>`](bevy_asset::Assets) resource
54+
/// A handle to a font stored in the [`Assets<Font>`](bevy_asset::Assets) resource
5555
Handle(Handle<Font>),
56-
/// An asset path leading to a shader
56+
/// An asset path leading to a font
5757
Path(AssetPath<'static>),
5858
}
5959

crates/bevy_text/src/text.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -257,15 +257,15 @@ impl Default for TextStyle {
257257
}
258258
}
259259

260-
/// Used to configure the default font used by TextStyle when the font is set to FontRef::Default
260+
/// Used to configure the default font used by [`TextStyle`] when the font is set to [`FontRef::Default`]
261261
#[derive(Default)]
262262
pub struct DefaultFont {
263263
pub path: Option<AssetPath<'static>>,
264264
}
265265

266-
/// Loads fonts defined by a FontRef
267-
/// If the font has already been loaded then it simply converts the FontRef::Path to a FontRef::Handle
268-
/// Otherwise it tries to load the font with the asset_server
266+
/// Loads fonts defined by a [`FontRef`]
267+
/// If the font has already been loaded then it simply converts the [`FontRef::Path`] to a [`FontRef::Handle`]
268+
/// Otherwise it tries to load the font with the [`AssetServer`]
269269
pub fn load_font(
270270
mut query: Query<&mut Text, Added<Text>>,
271271
asset_server: Res<AssetServer>,

examples/games/alien_cake_addict.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
//! Eat the cakes. Eat them all. An example 3D game.
22
3-
use bevy::{ecs::schedule::SystemSet, prelude::*, text::FontRef, time::FixedTimestep};
3+
use bevy::{ecs::schedule::SystemSet, prelude::*, time::FixedTimestep};
44
use rand::Rng;
55

66
#[derive(Clone, Eq, PartialEq, Debug, Hash)]

examples/transforms/global_vs_local_translation.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@ fn setup(
4040
mut commands: Commands,
4141
mut meshes: ResMut<Assets<Mesh>>,
4242
mut materials: ResMut<Assets<StandardMaterial>>,
43-
asset_server: Res<AssetServer>,
4443
) {
4544
// To show the difference between a local transform (rotation, scale and position in respect to a given entity)
4645
// and global transform (rotation, scale and position in respect to the base coordinate system of the visible scene)

0 commit comments

Comments
 (0)