Skip to content

Commit e1e8d20

Browse files
committed
Stop using deprecated method
1 parent 4a18079 commit e1e8d20

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

security-framework/src/os/macos/secure_transport.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ mod test {
257257
};
258258

259259
assert!(stream.server_auth_completed());
260-
let mut peer_trust = p!(stream.context().peer_trust());
260+
let mut peer_trust = p!(stream.context().peer_trust2()).unwrap();
261261
p!(peer_trust.set_anchor_certificates(&[certificate()]));
262262
let result = p!(peer_trust.evaluate());
263263
assert!(result.success());

0 commit comments

Comments
 (0)