minor changes

This commit is contained in:
2026-04-10 21:25:32 +08:00
parent b1b886229b
commit d90fd8d681
2 changed files with 10 additions and 10 deletions
+1 -3
View File
@@ -384,9 +384,7 @@ impl<'gc> Deref for AttrSet<'gc> {
}
impl<'gc> AttrSet<'gc> {
pub(crate) fn from_sorted_unchecked(
entries: SmallVec<[(StringId, Value<'gc>); 4]>,
) -> Self {
pub(crate) fn from_sorted_unchecked(entries: SmallVec<[(StringId, Value<'gc>); 4]>) -> Self {
debug_assert!(entries.is_sorted_by_key(|(key, _)| *key));
Self { entries }
}