Skip to content

Commit de303ab

Browse files
committed
fix new compiler rule for tests
1 parent fc24f5f commit de303ab

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

lib/dsc-lib/tests/integration/schemas/schema_for.rs

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ macro_rules! test_schema_for {
2929
#[allow(non_snake_case)]
3030
#[cfg(test)] mod dsc_lib {
3131
#[cfg(test)] mod configure {
32+
#[allow(unused_must_use)]
3233
#[cfg(test)] mod config_doc {
3334
test_schema_for!(dsc_lib::configure::config_doc::SecurityContextKind);
3435
test_schema_for!(dsc_lib::configure::config_doc::Operation);
@@ -51,6 +52,7 @@ macro_rules! test_schema_for {
5152
test_schema_for!(dsc_lib::configure::config_doc::Sku);
5253
test_schema_for!(dsc_lib::configure::config_doc::Resource);
5354
}
55+
#[allow(unused_must_use)]
5456
#[cfg(test)] mod config_results {
5557
test_schema_for!(dsc_lib::configure::config_result::MessageLevel);
5658
test_schema_for!(dsc_lib::configure::config_result::ResourceMessage);
@@ -64,6 +66,7 @@ macro_rules! test_schema_for {
6466
test_schema_for!(dsc_lib::configure::config_result::ConfigurationTestResult);
6567
test_schema_for!(dsc_lib::configure::config_result::ConfigurationExportResult);
6668
}
69+
#[allow(unused_must_use)]
6770
#[cfg(test)] mod parameters {
6871
test_schema_for!(dsc_lib::configure::parameters::Input);
6972
test_schema_for!(dsc_lib::configure::parameters::SecureString);
@@ -72,17 +75,20 @@ macro_rules! test_schema_for {
7275
}
7376
}
7477
#[cfg(test)] mod discovery {
78+
#[allow(unused_must_use)]
7579
#[cfg(test)] mod command_discovery {
7680
test_schema_for!(dsc_lib::discovery::command_discovery::ImportedManifest);
7781
}
7882
}
7983

8084
#[cfg(test)] mod dscresources {
85+
#[allow(unused_must_use)]
8186
#[cfg(test)] mod dscresource {
8287
test_schema_for!(dsc_lib::dscresources::dscresource::DscResource);
8388
test_schema_for!(dsc_lib::dscresources::dscresource::Capability);
8489
test_schema_for!(dsc_lib::dscresources::dscresource::ImplementedAs);
8590
}
91+
#[allow(unused_must_use)]
8692
#[cfg(test)] mod invoke_result {
8793
test_schema_for!(dsc_lib::dscresources::invoke_result::GetResult);
8894
test_schema_for!(dsc_lib::dscresources::invoke_result::ResourceGetResponse);
@@ -94,6 +100,7 @@ macro_rules! test_schema_for {
94100
test_schema_for!(dsc_lib::dscresources::invoke_result::ExportResult);
95101
test_schema_for!(dsc_lib::dscresources::invoke_result::ResolveResult);
96102
}
103+
#[allow(unused_must_use)]
97104
#[cfg(test)] mod resource_manifest {
98105
test_schema_for!(dsc_lib::dscresources::resource_manifest::Kind);
99106
test_schema_for!(dsc_lib::dscresources::resource_manifest::ArgKind);
@@ -116,21 +123,26 @@ macro_rules! test_schema_for {
116123
}
117124

118125
#[cfg(test)] mod extensions {
126+
#[allow(unused_must_use)]
119127
#[cfg(test)] mod discover {
120128
test_schema_for!(dsc_lib::extensions::discover::DiscoverMethod);
121129
test_schema_for!(dsc_lib::extensions::discover::DiscoverResult);
122130
}
131+
#[allow(unused_must_use)]
123132
#[cfg(test)] mod dscextension {
124133
test_schema_for!(dsc_lib::extensions::dscextension::DscExtension);
125134
test_schema_for!(dsc_lib::extensions::dscextension::Capability);
126135
}
136+
#[allow(unused_must_use)]
127137
#[cfg(test)] mod extension_manifest {
128138
test_schema_for!(dsc_lib::extensions::extension_manifest::ExtensionManifest);
129139
}
140+
#[allow(unused_must_use)]
130141
#[cfg(test)] mod import {
131142
test_schema_for!(dsc_lib::extensions::import::ImportMethod);
132143
test_schema_for!(dsc_lib::extensions::import::ImportArgKind);
133144
}
145+
#[allow(unused_must_use)]
134146
#[cfg(test)] mod secret {
135147
test_schema_for!(dsc_lib::extensions::secret::SecretArgKind);
136148
test_schema_for!(dsc_lib::extensions::secret::SecretMethod);

0 commit comments

Comments
 (0)