Skip to content

Commit cc932d4

Browse files
committed
fix cli errors
1 parent 86f8e7c commit cc932d4

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

src/interpolate/sprite.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ pub fn color_material_to(to: Color) -> impl Fn(&mut Color) -> ColorMaterial {
101101
}
102102
}
103103

104-
/// Constructor for delta [`ColorMaterial`]
104+
/// Constructor for delta [`ColorMaterial`](crate::interpolate::ColorMaterial)
105105
pub fn color_material_delta_to(to: Color) -> impl Fn(&mut Color) -> ColorMaterial {
106106
move |state| {
107107
let start = *state;

src/interpolate/transform.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ pub fn translation_delta_by(by: Vec3) -> impl Fn(&mut Vec3) -> Translation {
6060
move |state| {
6161
let start = *state;
6262
let end = *state + by;
63+
*state += by;
6364
Translation { start, end, delta: true }
6465
}
6566
}
@@ -244,7 +245,7 @@ pub fn angle_z_by(by: f32) -> impl Fn(&mut f32) -> AngleZ {
244245
}
245246
}
246247

247-
/// Constructor for [`AngleZDelta`] that's relative to previous value
248+
/// Constructor for [`AngleZ`] that's relative to previous value
248249
/// Since this is a delta tween, it can happen with other ongoing tweens of that type
249250
pub fn angle_z_delta_by(by: f32) -> impl Fn(&mut f32) -> AngleZ {
250251
move |state| {

src/interpolate/ui.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ pub fn background_color_to(
4444
}
4545
}
4646

47-
/// Constructor for delta [`BackgroundColor`]
47+
/// Constructor for delta [`BackgroundColor`](crate::interpolate::BackgroundColor)
4848
pub fn background_color_delta_to(
4949
to: Color,
5050
) -> impl Fn(&mut Color) -> BackgroundColor {
@@ -97,7 +97,7 @@ pub fn border_color_to(to: Color) -> impl Fn(&mut Color) -> BorderColor {
9797
}
9898
}
9999

100-
/// Constructor for [`BorderColor`] that's relative to previous value using currying.
100+
/// Constructor for [`BorderColor`](crate::interpolate::BorderColor) that's relative to previous value using currying.
101101
pub fn border_color_delta_to(to: Color) -> impl Fn(&mut Color) -> BorderColor {
102102
move |state| {
103103
let start = *state;

0 commit comments

Comments
 (0)