55 edition : legacy
66 lint : true
77-- -
8+ warning [Lint W99010 ]: function can be marked '#[view]'
9+ ┌─ tests/iota_mode/linter/collection_equality.move:17:16
10+ │
11+ 17 │ public fun bag_eq(bag1 : & Bag , bag2 : & Bag ): bool {
12+ │ ^^^^^^ Function ' bag_eq' satisfies view constraints and can be annotated with ' #[view]'
13+ │
14+ = Add ' #[view]' to make the function explicitly callable as a view function .
15+ = This warning can be suppressed with '#[allow(lint (view_function ))]' applied to the 'module' or module member ('const ', 'fun ', or 'struct ')
16+
817warning[Lint W99005]: possibly useless collections compare
918 ┌─ tests/iota_mode/linter/collection_equality.move:18:14
1019 │
@@ -14,6 +23,15 @@ warning[Lint W99005]: possibly useless collections compare
1423 = Equality for collections of type 'iota::bag::Bag' IS NOT a structural check based on content
1524 = This warning can be suppressed with '#[allow(lint (collection_equality ))]' applied to the 'module' or module member ('const ', 'fun ', or 'struct ')
1625
26+ warning[Lint W99010]: function can be marked '#[view]'
27+ ┌─ tests/iota_mode/linter/collection_equality.move:21:16
28+ │
29+ 21 │ public fun obj_bag_neq(bag1 : & ObjectBag , bag2 : & ObjectBag ): bool {
30+ │ ^^^^^^^^^^^ Function ' obj_bag_neq' satisfies view constraints and can be annotated with ' #[view]'
31+ │
32+ = Add ' #[view]' to make the function explicitly callable as a view function .
33+ = This warning can be suppressed with '#[allow(lint (view_function ))]' applied to the 'module' or module member ('const ', 'fun ', or 'struct ')
34+
1735warning[Lint W99005]: possibly useless collections compare
1836 ┌─ tests/iota_mode/linter/collection_equality.move:22:14
1937 │
@@ -23,6 +41,15 @@ warning[Lint W99005]: possibly useless collections compare
2341 = Equality for collections of type 'iota::object_bag::ObjectBag' IS NOT a structural check based on content
2442 = This warning can be suppressed with '#[allow(lint (collection_equality ))]' applied to the 'module' or module member ('const ', 'fun ', or 'struct ')
2543
44+ warning[Lint W99010]: function can be marked '#[view]'
45+ ┌─ tests/iota_mode/linter/collection_equality.move:25:16
46+ │
47+ 25 │ public fun table_eq(table1 : & Table <u64 , u64 >, table2 : & Table <u64 , u64 >): bool {
48+ │ ^^^^^^^^ Function ' table_eq' satisfies view constraints and can be annotated with ' #[view]'
49+ │
50+ = Add ' #[view]' to make the function explicitly callable as a view function .
51+ = This warning can be suppressed with '#[allow(lint (view_function ))]' applied to the 'module' or module member ('const ', 'fun ', or 'struct ')
52+
2653warning[Lint W99005]: possibly useless collections compare
2754 ┌─ tests/iota_mode/linter/collection_equality.move:26:16
2855 │
@@ -32,6 +59,15 @@ warning[Lint W99005]: possibly useless collections compare
3259 = Equality for collections of type 'iota::table::Table' IS NOT a structural check based on content
3360 = This warning can be suppressed with '#[allow(lint (collection_equality ))]' applied to the 'module' or module member ('const ', 'fun ', or 'struct ')
3461
62+ warning[Lint W99010]: function can be marked '#[view]'
63+ ┌─ tests/iota_mode/linter/collection_equality.move:29:16
64+ │
65+ 29 │ public fun obj_table_eq<K : copy + drop + store , V : key + store >(
66+ │ ^^^^^^^^^^^^ Function 'obj_table_eq ' satisfies view constraints and can be annotated with '#[view ]'
67+ │
68+ = Add ' #[view]' to make the function explicitly callable as a view function .
69+ = This warning can be suppressed with '#[allow(lint (view_function ))]' applied to the 'module' or module member ('const ', 'fun ', or 'struct ')
70+
3571warning[Lint W99005]: possibly useless collections compare
3672 ┌─ tests/iota_mode/linter/collection_equality.move:33:20
3773 │
@@ -41,6 +77,15 @@ warning[Lint W99005]: possibly useless collections compare
4177 = Equality for collections of type 'iota::object_table::ObjectTable' IS NOT a structural check based on content
4278 = This warning can be suppressed with '#[allow(lint (collection_equality ))]' applied to the 'module' or module member ('const ', 'fun ', or 'struct ')
4379
80+ warning[Lint W99010]: function can be marked '#[view]'
81+ ┌─ tests/iota_mode/linter/collection_equality.move:36:16
82+ │
83+ 36 │ public fun linked_table_neq(table1 : & LinkedTable <u64 , u64 >, table2 : & LinkedTable <u64 , u64 >): bool {
84+ │ ^^^^^^^^^^^^^^^^ Function ' linked_table_neq' satisfies view constraints and can be annotated with ' #[view]'
85+ │
86+ = Add ' #[view]' to make the function explicitly callable as a view function .
87+ = This warning can be suppressed with '#[allow(lint (view_function ))]' applied to the 'module' or module member ('const ', 'fun ', or 'struct ')
88+
4489warning[Lint W99005]: possibly useless collections compare
4590 ┌─ tests/iota_mode/linter/collection_equality.move:37:16
4691 │
@@ -50,6 +95,15 @@ warning[Lint W99005]: possibly useless collections compare
5095 = Equality for collections of type 'iota::linked_table::LinkedTable' IS NOT a structural check based on content
5196 = This warning can be suppressed with '#[allow(lint (collection_equality ))]' applied to the 'module' or module member ('const ', 'fun ', or 'struct ')
5297
98+ warning[Lint W99010]: function can be marked '#[view]'
99+ ┌─ tests/iota_mode/linter/collection_equality.move:40:16
100+ │
101+ 40 │ public fun table_vec_eq(table1 : & TableVec <u64 >, table2 : & TableVec <u64 >): bool {
102+ │ ^^^^^^^^^^^^ Function ' table_vec_eq' satisfies view constraints and can be annotated with ' #[view]'
103+ │
104+ = Add ' #[view]' to make the function explicitly callable as a view function .
105+ = This warning can be suppressed with '#[allow(lint (view_function ))]' applied to the 'module' or module member ('const ', 'fun ', or 'struct ')
106+
53107warning[Lint W99005]: possibly useless collections compare
54108 ┌─ tests/iota_mode/linter/collection_equality.move:41:16
55109 │
@@ -59,6 +113,15 @@ warning[Lint W99005]: possibly useless collections compare
59113 = Equality for collections of type 'iota::table_vec::TableVec' IS NOT a structural check based on content
60114 = This warning can be suppressed with '#[allow(lint (collection_equality ))]' applied to the 'module' or module member ('const ', 'fun ', or 'struct ')
61115
116+ warning[Lint W99010]: function can be marked '#[view]'
117+ ┌─ tests/iota_mode/linter/collection_equality.move:44:16
118+ │
119+ 44 │ public fun vec_map_eq(vec1 : & VecMap <u64 , u64 >, vec2 : & VecMap <u64 , u64 >): bool {
120+ │ ^^^^^^^^^^ Function ' vec_map_eq' satisfies view constraints and can be annotated with ' #[view]'
121+ │
122+ = Add ' #[view]' to make the function explicitly callable as a view function .
123+ = This warning can be suppressed with '#[allow(lint (view_function ))]' applied to the 'module' or module member ('const ', 'fun ', or 'struct ')
124+
62125warning[Lint W99005]: possibly useless collections compare
63126 ┌─ tests/iota_mode/linter/collection_equality.move:45:14
64127 │
@@ -68,6 +131,15 @@ warning[Lint W99005]: possibly useless collections compare
68131 = Equality for collections of type 'iota::vec_map::VecMap' IS NOT a structural check based on content
69132 = This warning can be suppressed with '#[allow(lint (collection_equality ))]' applied to the 'module' or module member ('const ', 'fun ', or 'struct ')
70133
134+ warning[Lint W99010]: function can be marked '#[view]'
135+ ┌─ tests/iota_mode/linter/collection_equality.move:48:16
136+ │
137+ 48 │ public fun vec_set_eq(vec1 : & VecSet <u64 >, vec2 : & VecSet <u64 >): bool {
138+ │ ^^^^^^^^^^ Function ' vec_set_eq' satisfies view constraints and can be annotated with ' #[view]'
139+ │
140+ = Add ' #[view]' to make the function explicitly callable as a view function .
141+ = This warning can be suppressed with '#[allow(lint (view_function ))]' applied to the 'module' or module member ('const ', 'fun ', or 'struct ')
142+
71143warning[Lint W99005]: possibly useless collections compare
72144 ┌─ tests/iota_mode/linter/collection_equality.move:49:14
73145 │
0 commit comments