Skip to content

Commit

Permalink
fixed a clippy (nightly) warning
Browse files Browse the repository at this point in the history
There's no need for a `Vec` here
  • Loading branch information
alex committed Feb 8, 2024
1 parent 745b200 commit 16ef75c
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions openssl/src/x509/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2094,10 +2094,7 @@ impl GeneralName {
}
}

pub(crate) fn new_other_name(
oid: Asn1Object,
value: &Vec<u8>,
) -> Result<GeneralName, ErrorStack> {
pub(crate) fn new_other_name(oid: Asn1Object, value: &[u8]) -> Result<GeneralName, ErrorStack> {
unsafe {
ffi::init();

Expand Down

0 comments on commit 16ef75c

Please sign in to comment.