Skip to content

Commit ea76c28

Browse files
committed
Run cargo fmt (even though the formatting of OID is broken)
Run rustfmt, even though the formatting of OID is broken (reported upstream as rust-lang/rustfmt#4543).
1 parent ffcbcab commit ea76c28

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/objects.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ mod tests {
5252
// This test is meant to check syntax of pattern matching with OID objects
5353
#[test]
5454
fn test_oid_match() {
55-
let oid = oid!(1.2.840.113549.1.1.5);
55+
let oid = oid!(1.2.840 .113549 .1 .1 .5);
5656
if oid == OID_PKCS1_SHA1WITHRSA {
5757
// ok
5858
}

src/x509.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -439,21 +439,21 @@ mod tests {
439439
rdn_seq: vec![
440440
RelativeDistinguishedName {
441441
set: vec![AttributeTypeAndValue {
442-
attr_type: oid!(2.5.4.6), // countryName
442+
attr_type: oid!(2.5.4 .6), // countryName
443443
attr_value: DerObject::from_obj(BerObjectContent::PrintableString("FR")),
444444
}],
445445
},
446446
RelativeDistinguishedName {
447447
set: vec![AttributeTypeAndValue {
448-
attr_type: oid!(2.5.4.8), // stateOrProvinceName
448+
attr_type: oid!(2.5.4 .8), // stateOrProvinceName
449449
attr_value: DerObject::from_obj(BerObjectContent::PrintableString(
450450
"Some-State",
451451
)),
452452
}],
453453
},
454454
RelativeDistinguishedName {
455455
set: vec![AttributeTypeAndValue {
456-
attr_type: oid!(2.5.4.10), // organizationName
456+
attr_type: oid!(2.5.4 .10), // organizationName
457457
attr_value: DerObject::from_obj(BerObjectContent::PrintableString(
458458
"Internet Widgits Pty Ltd",
459459
)),
@@ -462,13 +462,13 @@ mod tests {
462462
RelativeDistinguishedName {
463463
set: vec![
464464
AttributeTypeAndValue {
465-
attr_type: oid!(2.5.4.3), // CN
465+
attr_type: oid!(2.5.4 .3), // CN
466466
attr_value: DerObject::from_obj(BerObjectContent::PrintableString(
467467
"Test1",
468468
)),
469469
},
470470
AttributeTypeAndValue {
471-
attr_type: oid!(2.5.4.3), // CN
471+
attr_type: oid!(2.5.4 .3), // CN
472472
attr_value: DerObject::from_obj(BerObjectContent::PrintableString(
473473
"Test2",
474474
)),

0 commit comments

Comments
 (0)