From d6d60f20218464c38a4f5e6b8652351981863a8b Mon Sep 17 00:00:00 2001 From: Michael Dorst Date: Tue, 28 Dec 2021 19:23:09 -0800 Subject: [PATCH 1/2] Fix doc_markdown lints in bevy_ui --- crates/bevy_ui/src/widget/text.rs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/crates/bevy_ui/src/widget/text.rs b/crates/bevy_ui/src/widget/text.rs index 5af7a84c1d165..34f7dae4abcce 100644 --- a/crates/bevy_ui/src/widget/text.rs +++ b/crates/bevy_ui/src/widget/text.rs @@ -21,8 +21,7 @@ fn scale_value(value: f32, factor: f64) -> f32 { (value as f64 * factor) as f32 } -/// Defines how min_size, size, and max_size affects the bounds of a text -/// block. +/// Defines how `min_size`, `size`, and `max_size` affects the bounds of a text block. pub fn text_constraint(min_size: Val, size: Val, max_size: Val, scale_factor: f64) -> f32 { // Needs support for percentages match (min_size, size, max_size) { @@ -34,8 +33,8 @@ pub fn text_constraint(min_size: Val, size: Val, max_size: Val, scale_factor: f6 } } -/// Computes the size of a text block and updates the TextGlyphs with the -/// new computed glyphs from the layout +/// Computes the size of a text block and updates the [`TextGlyphs`] with the new computed glyphs +/// from the layout #[allow(clippy::too_many_arguments, clippy::type_complexity)] pub fn text_system( mut queued_text: Local, From 15d2ade8a6a2a3054734da09d18bc11831ef24b3 Mon Sep 17 00:00:00 2001 From: Michael Dorst Date: Wed, 29 Dec 2021 01:07:27 -0800 Subject: [PATCH 2/2] Unlink TextGlyph (not a type?) --- crates/bevy_ui/src/widget/text.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/bevy_ui/src/widget/text.rs b/crates/bevy_ui/src/widget/text.rs index 34f7dae4abcce..5d5dfcea40192 100644 --- a/crates/bevy_ui/src/widget/text.rs +++ b/crates/bevy_ui/src/widget/text.rs @@ -33,7 +33,7 @@ pub fn text_constraint(min_size: Val, size: Val, max_size: Val, scale_factor: f6 } } -/// Computes the size of a text block and updates the [`TextGlyphs`] with the new computed glyphs +/// Computes the size of a text block and updates the `TextGlyphs` with the new computed glyphs /// from the layout #[allow(clippy::too_many_arguments, clippy::type_complexity)] pub fn text_system(