Bump version to 1.6.2

This commit is contained in:
Ryan Ward
2026-06-04 16:07:24 -05:00
parent 840bc4d244
commit 4ba9706e35
12 changed files with 54 additions and 61 deletions
@@ -5,9 +5,8 @@ use pathfinder_geometry::{
use crate::{
elements::{
new_scrollable::{util::child_constraint_for_axis, ScrollableAxis},
Axis, ClippedScrollStateHandle, ScrollData, ScrollStateHandle, SelectableElement,
Vector2FExt,
new_scrollable::util::child_constraint_for_axis, Axis, ClippedScrollStateHandle,
ScrollData, ScrollStateHandle, SelectableElement, Vector2FExt,
},
event::DispatchedEvent,
units::{IntoPixels, Pixels},
@@ -19,6 +18,8 @@ use super::{
util::{scroll_clipped_scrollable_handle_with_delta, scroll_delta_for_axis},
NewScrollableElement, SingleAxisConfig,
};
#[cfg(debug_assertions)]
use super::ScrollableAxis;
use crate::elements::ScrollTarget;
@@ -13,8 +13,10 @@ use crate::{
use super::{
util::{scroll_clipped_scrollable_handle_with_delta, scroll_delta_for_axis},
NewScrollableElement, ScrollableAxis,
NewScrollableElement,
};
#[cfg(debug_assertions)]
use super::ScrollableAxis;
use crate::elements::{ScrollTarget, ScrollToPositionMode};
@@ -42,11 +44,11 @@ pub enum SingleAxisConfig {
impl SingleAxisConfig {
/// At run-time, validate if the passed-in axis config is valid.
pub(super) fn validate(&self, axis: Axis) {
pub(super) fn validate(&self, _axis: Axis) {
#[cfg(debug_assertions)]
{
if let SingleAxisConfig::Manual { child, .. } = self {
if matches!(axis, Axis::Horizontal)
if matches!(_axis, Axis::Horizontal)
&& matches!(child.axis(), ScrollableAxis::Vertical)
{
panic!(
@@ -54,7 +56,7 @@ impl SingleAxisConfig {
);
}
if matches!(axis, Axis::Vertical)
if matches!(_axis, Axis::Vertical)
&& matches!(child.axis(), ScrollableAxis::Horizontal)
{
panic!(
@@ -153,6 +153,7 @@ impl Element for Rect {
}
#[cfg_attr(debug_assertions, track_caller)]
#[allow(unused_mut)]
fn finish(mut self) -> Box<dyn Element>
where
Self: 'static + Sized,