Skip to content

Commit 64b3106

Browse files
authored
Merge pull request #1954 from sfackler/alex-patch-1
Fixed type mutability on asn1_flag
2 parents 92dca6b + 1b9fba4 commit 64b3106

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

openssl/src/ec.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,7 @@ impl EcGroupRef {
296296

297297
/// Gets the flag determining if the group corresponds to a named curve.
298298
#[corresponds(EC_GROUP_get_asn1_flag)]
299-
pub fn asn1_flag(&mut self) -> Asn1Flag {
299+
pub fn asn1_flag(&self) -> Asn1Flag {
300300
unsafe { Asn1Flag(ffi::EC_GROUP_get_asn1_flag(self.as_ptr())) }
301301
}
302302

@@ -1275,7 +1275,7 @@ mod test {
12751275
#[test]
12761276
#[cfg(any(boringssl, ossl111, libressl350))]
12771277
fn asn1_flag() {
1278-
let mut group = EcGroup::from_curve_name(Nid::X9_62_PRIME256V1).unwrap();
1278+
let group = EcGroup::from_curve_name(Nid::X9_62_PRIME256V1).unwrap();
12791279
let flag = group.asn1_flag();
12801280
assert_eq!(flag, Asn1Flag::NAMED_CURVE);
12811281
}

0 commit comments

Comments
 (0)