Skip to content

Commit 0225a26

Browse files
committed
ext: mark new constructor as test-only
1 parent 973271c commit 0225a26

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Diff for: rcgen/src/ext.rs

+1
Original file line numberDiff line numberDiff line change
@@ -203,6 +203,7 @@ impl Extensions {
203203
/// # Errors
204204
///
205205
/// Returns [Error::DuplicateExtension] if any of the extensions have the same OID.
206+
#[cfg(test)]
206207
pub(crate) fn new(
207208
extensions: impl IntoIterator<Item = Box<dyn Extension>>,
208209
) -> Result<Self, Error> {

0 commit comments

Comments
 (0)