Skip to content

Commit 000ef8c

Browse files
committed
is empty if len is zero
1 parent 0834f30 commit 000ef8c

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

g16ckt/src/gadgets/bn254/fq12.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ impl Fq12 {
6868
}
6969

7070
pub fn is_empty(&self) -> bool {
71-
self.0.is_empty()
71+
self.len() == 0
7272
}
7373

7474
pub fn new_constant(v: ark_bn254::Fq12) -> Fq12 {

g16ckt/src/gadgets/bn254/fq2.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ impl Fq2 {
8484
}
8585

8686
pub fn is_empty(&self) -> bool {
87-
self.0.is_empty()
87+
self.len() == 0
8888
}
8989

9090
pub fn iter(&self) -> impl Iterator<Item = &WireId> {

g16ckt/src/gadgets/bn254/fq6.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -519,7 +519,7 @@ impl Fq6 {
519519
}
520520

521521
pub fn is_empty(&self) -> bool {
522-
self.0.is_empty()
522+
self.len() == 0
523523
}
524524
}
525525

0 commit comments

Comments
 (0)