Skip to content

Commit af4f22b

Browse files
committed
deduplicate attached_text
Signed-off-by: Christian Poveda <[email protected]>
1 parent cf4fab5 commit af4f22b

File tree

6 files changed

+6
-198
lines changed

6 files changed

+6
-198
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
pub(crate) mod attached_text;

cyclonedx-bom/src/specs/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,6 @@
1616
* SPDX-License-Identifier: Apache-2.0
1717
*/
1818

19+
pub(crate) mod common;
1920
pub(crate) mod v1_3;
2021
pub(crate) mod v1_4;

cyclonedx-bom/src/specs/v1_3/mod.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
* SPDX-License-Identifier: Apache-2.0
1717
*/
1818

19-
pub(crate) mod attached_text;
2019
pub(crate) mod bom;
2120
pub(crate) mod code;
2221
pub(crate) mod component;
@@ -30,3 +29,5 @@ pub(crate) mod organization;
3029
pub(crate) mod property;
3130
pub(crate) mod service;
3231
pub(crate) mod tool;
32+
33+
pub(crate) use super::common::attached_text;

cyclonedx-bom/src/specs/v1_4/attached_text.rs

Lines changed: 0 additions & 196 deletions
This file was deleted.

cyclonedx-bom/src/specs/v1_4/mod.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
*/
1818

1919
pub(crate) mod advisory;
20-
pub(crate) mod attached_text;
2120
pub(crate) mod bom;
2221
pub(crate) mod code;
2322
pub(crate) mod component;
@@ -39,3 +38,5 @@ pub(crate) mod vulnerability_rating;
3938
pub(crate) mod vulnerability_reference;
4039
pub(crate) mod vulnerability_source;
4140
pub(crate) mod vulnerability_target;
41+
42+
pub(crate) use super::common::attached_text;

0 commit comments

Comments
 (0)