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
+2 -2
View File
@@ -1560,7 +1560,7 @@ impl AppContext {
#[cfg(not(debug_assertions))]
pub fn register_binding_validator<T: View>(
&mut self,
binding_validator: impl Fn(BindingLens) -> IsBindingValid + 'static,
_binding_validator: impl Fn(BindingLens) -> IsBindingValid + 'static,
) {
}
@@ -1582,7 +1582,7 @@ impl AppContext {
#[cfg(not(debug_assertions))]
pub fn set_default_binding_validator(
&mut self,
binding_validator: impl Fn(BindingLens) -> IsBindingValid + 'static,
_binding_validator: impl Fn(BindingLens) -> IsBindingValid + 'static,
) {
}
@@ -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,
@@ -12,9 +12,11 @@ pub struct Matcher {
keymap: Keymap,
/// Default binding validator that should run on every binding (irrespective of the [`Context`]
/// the binding was registered against).
#[cfg_attr(not(debug_assertions), allow(dead_code))]
default_binding_validator: Option<BindingValidatorFn>,
/// List of validators to be used during binding validation. Each binding validator validates
/// all of the bindings that match the [`Context`] it is paired with.
#[cfg_attr(not(debug_assertions), allow(dead_code))]
binding_validators: Vec<(Context, BindingValidatorFn)>,
/// Function to convert bindings that have a [`CustomTag`] trigger to one that has a
/// [`Keystroke`]-based trigger instead. If `None`, bindings are not converted.
+2 -2
View File
@@ -533,9 +533,9 @@ impl Scene {
}
}
fn validate_rect(rect: &RectF, location: Option<&'static std::panic::Location<'static>>) {
fn validate_rect(rect: &RectF, _location: Option<&'static std::panic::Location<'static>>) {
#[cfg(debug_assertions)]
let location_info = location
let location_info = _location
.map(|loc| {
format!(
" (element created at {}:{}:{})",