From 45d561bee75f1d7cd6858e1d89c9f08f26b7ebfa Mon Sep 17 00:00:00 2001 From: Daniel McNab <36049421+DJMcNab@users.noreply.github.com> Date: Thu, 25 Apr 2024 13:23:47 +0100 Subject: [PATCH] Address review comments and clippy --- crates/xilem_masonry/src/sequence.rs | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/crates/xilem_masonry/src/sequence.rs b/crates/xilem_masonry/src/sequence.rs index eefcb5581..1b3e67cdb 100644 --- a/crates/xilem_masonry/src/sequence.rs +++ b/crates/xilem_masonry/src/sequence.rs @@ -251,7 +251,7 @@ impl> ViewSequence { impl< @@ -326,7 +328,7 @@ macro_rules! impl_view_tuple { ) -> MessageResult { let (start, rest) = id_path .split_first() - .expect("Id path has elements for vector"); + .expect("Id path has elements for tuple"); let index_plus_one = start.routing_id().get(); match index_plus_one - 1 { $( @@ -345,7 +347,7 @@ macro_rules! impl_view_tuple { }; } -// We implement for tuples of length up to 15 +// We implement for tuples of length up to 15. 0 and 1 are special cased to be more efficient impl_view_tuple!(M0, Seq0, 0; M1, Seq1, 1); impl_view_tuple!(M0, Seq0, 0; M1, Seq1, 1; M2, Seq2, 2); impl_view_tuple!(M0, Seq0, 0; M1, Seq1, 1; M2, Seq2, 2; M3, Seq3, 3);