Skip to content

Commit

Permalink
Some mysterious corrections in the snapshots.
Browse files Browse the repository at this point in the history
  • Loading branch information
MathieuDutSik committed Oct 2, 2024
1 parent bff8379 commit 0f58a84
Show file tree
Hide file tree
Showing 8 changed files with 32 additions and 32 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,13 @@ where
let mut keys = Vec::new();
let index = 0;
let base_key = context
.derive_tag_key(linera_views::common::MIN_VIEW_TAG, &index)?;
.derive_tag_key(linera_views::views::MIN_VIEW_TAG, &index)?;
keys.extend(
RegisterView::<C, usize>::pre_load(&context.clone_with_base_key(base_key))?,
);
let index = 1;
let base_key = context
.derive_tag_key(linera_views::common::MIN_VIEW_TAG, &index)?;
.derive_tag_key(linera_views::views::MIN_VIEW_TAG, &index)?;
keys.extend(
CollectionView::<
C,
Expand All @@ -43,7 +43,7 @@ where
let index = 0;
let pos_next = pos + RegisterView::<C, usize>::NUM_INIT_KEYS;
let base_key = context
.derive_tag_key(linera_views::common::MIN_VIEW_TAG, &index)?;
.derive_tag_key(linera_views::views::MIN_VIEW_TAG, &index)?;
let register = RegisterView::<
C,
usize,
Expand All @@ -53,7 +53,7 @@ where
let pos_next = pos
+ CollectionView::<C, usize, RegisterView<C, usize>>::NUM_INIT_KEYS;
let base_key = context
.derive_tag_key(linera_views::common::MIN_VIEW_TAG, &index)?;
.derive_tag_key(linera_views::views::MIN_VIEW_TAG, &index)?;
let collection = CollectionView::<
C,
usize,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,13 @@ where
let mut keys = Vec::new();
let index = 0;
let base_key = context
.derive_tag_key(linera_views::common::MIN_VIEW_TAG, &index)?;
.derive_tag_key(linera_views::views::MIN_VIEW_TAG, &index)?;
keys.extend(
RegisterView::<C, usize>::pre_load(&context.clone_with_base_key(base_key))?,
);
let index = 1;
let base_key = context
.derive_tag_key(linera_views::common::MIN_VIEW_TAG, &index)?;
.derive_tag_key(linera_views::views::MIN_VIEW_TAG, &index)?;
keys.extend(
CollectionView::<
C,
Expand All @@ -44,7 +44,7 @@ where
let index = 0;
let pos_next = pos + RegisterView::<C, usize>::NUM_INIT_KEYS;
let base_key = context
.derive_tag_key(linera_views::common::MIN_VIEW_TAG, &index)?;
.derive_tag_key(linera_views::views::MIN_VIEW_TAG, &index)?;
let register = RegisterView::<
C,
usize,
Expand All @@ -54,7 +54,7 @@ where
let pos_next = pos
+ CollectionView::<C, usize, RegisterView<C, usize>>::NUM_INIT_KEYS;
let base_key = context
.derive_tag_key(linera_views::common::MIN_VIEW_TAG, &index)?;
.derive_tag_key(linera_views::views::MIN_VIEW_TAG, &index)?;
let collection = CollectionView::<
C,
usize,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ impl linera_views::views::View<CustomContext> for TestView {
let mut keys = Vec::new();
let index = 0;
let base_key = context
.derive_tag_key(linera_views::common::MIN_VIEW_TAG, &index)?;
.derive_tag_key(linera_views::views::MIN_VIEW_TAG, &index)?;
keys.extend(
RegisterView::<
CustomContext,
Expand All @@ -30,7 +30,7 @@ impl linera_views::views::View<CustomContext> for TestView {
);
let index = 1;
let base_key = context
.derive_tag_key(linera_views::common::MIN_VIEW_TAG, &index)?;
.derive_tag_key(linera_views::views::MIN_VIEW_TAG, &index)?;
keys.extend(
CollectionView::<
CustomContext,
Expand All @@ -49,7 +49,7 @@ impl linera_views::views::View<CustomContext> for TestView {
let index = 0;
let pos_next = pos + RegisterView::<CustomContext, usize>::NUM_INIT_KEYS;
let base_key = context
.derive_tag_key(linera_views::common::MIN_VIEW_TAG, &index)?;
.derive_tag_key(linera_views::views::MIN_VIEW_TAG, &index)?;
let register = RegisterView::<
CustomContext,
usize,
Expand All @@ -63,7 +63,7 @@ impl linera_views::views::View<CustomContext> for TestView {
RegisterView<CustomContext, usize>,
>::NUM_INIT_KEYS;
let base_key = context
.derive_tag_key(linera_views::common::MIN_VIEW_TAG, &index)?;
.derive_tag_key(linera_views::views::MIN_VIEW_TAG, &index)?;
let collection = CollectionView::<
CustomContext,
usize,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ where
let mut keys = Vec::new();
let index = 0;
let base_key = context
.derive_tag_key(linera_views::common::MIN_VIEW_TAG, &index)?;
.derive_tag_key(linera_views::views::MIN_VIEW_TAG, &index)?;
keys.extend(
RegisterView::<
CustomContext,
Expand All @@ -33,7 +33,7 @@ where
);
let index = 1;
let base_key = context
.derive_tag_key(linera_views::common::MIN_VIEW_TAG, &index)?;
.derive_tag_key(linera_views::views::MIN_VIEW_TAG, &index)?;
keys.extend(
CollectionView::<
CustomContext,
Expand All @@ -52,7 +52,7 @@ where
let index = 0;
let pos_next = pos + RegisterView::<CustomContext, usize>::NUM_INIT_KEYS;
let base_key = context
.derive_tag_key(linera_views::common::MIN_VIEW_TAG, &index)?;
.derive_tag_key(linera_views::views::MIN_VIEW_TAG, &index)?;
let register = RegisterView::<
CustomContext,
usize,
Expand All @@ -66,7 +66,7 @@ where
RegisterView<CustomContext, usize>,
>::NUM_INIT_KEYS;
let base_key = context
.derive_tag_key(linera_views::common::MIN_VIEW_TAG, &index)?;
.derive_tag_key(linera_views::views::MIN_VIEW_TAG, &index)?;
let collection = CollectionView::<
CustomContext,
usize,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ impl linera_views::views::View<custom::GenericContext<T>> for TestView {
let mut keys = Vec::new();
let index = 0;
let base_key = context
.derive_tag_key(linera_views::common::MIN_VIEW_TAG, &index)?;
.derive_tag_key(linera_views::views::MIN_VIEW_TAG, &index)?;
keys.extend(
RegisterView::<
custom::GenericContext<T>,
Expand All @@ -33,7 +33,7 @@ impl linera_views::views::View<custom::GenericContext<T>> for TestView {
);
let index = 1;
let base_key = context
.derive_tag_key(linera_views::common::MIN_VIEW_TAG, &index)?;
.derive_tag_key(linera_views::views::MIN_VIEW_TAG, &index)?;
keys.extend(
CollectionView::<
custom::GenericContext<T>,
Expand All @@ -53,7 +53,7 @@ impl linera_views::views::View<custom::GenericContext<T>> for TestView {
let pos_next = pos
+ RegisterView::<custom::GenericContext<T>, usize>::NUM_INIT_KEYS;
let base_key = context
.derive_tag_key(linera_views::common::MIN_VIEW_TAG, &index)?;
.derive_tag_key(linera_views::views::MIN_VIEW_TAG, &index)?;
let register = RegisterView::<
custom::GenericContext<T>,
usize,
Expand All @@ -67,7 +67,7 @@ impl linera_views::views::View<custom::GenericContext<T>> for TestView {
RegisterView<custom::GenericContext<T>, usize>,
>::NUM_INIT_KEYS;
let base_key = context
.derive_tag_key(linera_views::common::MIN_VIEW_TAG, &index)?;
.derive_tag_key(linera_views::views::MIN_VIEW_TAG, &index)?;
let collection = CollectionView::<
custom::GenericContext<T>,
usize,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ where
let mut keys = Vec::new();
let index = 0;
let base_key = context
.derive_tag_key(linera_views::common::MIN_VIEW_TAG, &index)?;
.derive_tag_key(linera_views::views::MIN_VIEW_TAG, &index)?;
keys.extend(
RegisterView::<
custom::GenericContext<T>,
Expand All @@ -36,7 +36,7 @@ where
);
let index = 1;
let base_key = context
.derive_tag_key(linera_views::common::MIN_VIEW_TAG, &index)?;
.derive_tag_key(linera_views::views::MIN_VIEW_TAG, &index)?;
keys.extend(
CollectionView::<
custom::GenericContext<T>,
Expand All @@ -56,7 +56,7 @@ where
let pos_next = pos
+ RegisterView::<custom::GenericContext<T>, usize>::NUM_INIT_KEYS;
let base_key = context
.derive_tag_key(linera_views::common::MIN_VIEW_TAG, &index)?;
.derive_tag_key(linera_views::views::MIN_VIEW_TAG, &index)?;
let register = RegisterView::<
custom::GenericContext<T>,
usize,
Expand All @@ -70,7 +70,7 @@ where
RegisterView<custom::GenericContext<T>, usize>,
>::NUM_INIT_KEYS;
let base_key = context
.derive_tag_key(linera_views::common::MIN_VIEW_TAG, &index)?;
.derive_tag_key(linera_views::views::MIN_VIEW_TAG, &index)?;
let collection = CollectionView::<
custom::GenericContext<T>,
usize,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ impl linera_views::views::View<custom::path::to::ContextType> for TestView {
let mut keys = Vec::new();
let index = 0;
let base_key = context
.derive_tag_key(linera_views::common::MIN_VIEW_TAG, &index)?;
.derive_tag_key(linera_views::views::MIN_VIEW_TAG, &index)?;
keys.extend(
RegisterView::<
custom::path::to::ContextType,
Expand All @@ -33,7 +33,7 @@ impl linera_views::views::View<custom::path::to::ContextType> for TestView {
);
let index = 1;
let base_key = context
.derive_tag_key(linera_views::common::MIN_VIEW_TAG, &index)?;
.derive_tag_key(linera_views::views::MIN_VIEW_TAG, &index)?;
keys.extend(
CollectionView::<
custom::path::to::ContextType,
Expand All @@ -53,7 +53,7 @@ impl linera_views::views::View<custom::path::to::ContextType> for TestView {
let pos_next = pos
+ RegisterView::<custom::path::to::ContextType, usize>::NUM_INIT_KEYS;
let base_key = context
.derive_tag_key(linera_views::common::MIN_VIEW_TAG, &index)?;
.derive_tag_key(linera_views::views::MIN_VIEW_TAG, &index)?;
let register = RegisterView::<
custom::path::to::ContextType,
usize,
Expand All @@ -67,7 +67,7 @@ impl linera_views::views::View<custom::path::to::ContextType> for TestView {
RegisterView<custom::path::to::ContextType, usize>,
>::NUM_INIT_KEYS;
let base_key = context
.derive_tag_key(linera_views::common::MIN_VIEW_TAG, &index)?;
.derive_tag_key(linera_views::views::MIN_VIEW_TAG, &index)?;
let collection = CollectionView::<
custom::path::to::ContextType,
usize,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ where
let mut keys = Vec::new();
let index = 0;
let base_key = context
.derive_tag_key(linera_views::common::MIN_VIEW_TAG, &index)?;
.derive_tag_key(linera_views::views::MIN_VIEW_TAG, &index)?;
keys.extend(
RegisterView::<
custom::path::to::ContextType,
Expand All @@ -37,7 +37,7 @@ where
);
let index = 1;
let base_key = context
.derive_tag_key(linera_views::common::MIN_VIEW_TAG, &index)?;
.derive_tag_key(linera_views::views::MIN_VIEW_TAG, &index)?;
keys.extend(
CollectionView::<
custom::path::to::ContextType,
Expand All @@ -57,7 +57,7 @@ where
let pos_next = pos
+ RegisterView::<custom::path::to::ContextType, usize>::NUM_INIT_KEYS;
let base_key = context
.derive_tag_key(linera_views::common::MIN_VIEW_TAG, &index)?;
.derive_tag_key(linera_views::views::MIN_VIEW_TAG, &index)?;
let register = RegisterView::<
custom::path::to::ContextType,
usize,
Expand All @@ -71,7 +71,7 @@ where
RegisterView<custom::path::to::ContextType, usize>,
>::NUM_INIT_KEYS;
let base_key = context
.derive_tag_key(linera_views::common::MIN_VIEW_TAG, &index)?;
.derive_tag_key(linera_views::views::MIN_VIEW_TAG, &index)?;
let collection = CollectionView::<
custom::path::to::ContextType,
usize,
Expand Down

0 comments on commit 0f58a84

Please sign in to comment.