Skip to content

Commit 94c9b67

Browse files
committed
Remove an obsolete check
1 parent cb89b06 commit 94c9b67

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

src/main.rs

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -198,13 +198,8 @@ fn main() {
198198
.map(|module| module.include_statement.to_owned())
199199
.collect();
200200

201-
// Warn if you used a populated assembly but provided no other modules
202-
if includes.is_empty() {
203-
eprintln!(
204-
"{}",
205-
"W: You have provided no modules to include in the assembly.".yellow()
206-
);
207-
}
201+
// The includes should never be empty thanks to the required group in clap
202+
assert!(!includes.is_empty());
208203

209204
// Generate the populated assembly module
210205
let populated = Module::new(ModuleType::Assembly, title, Some(&includes), &options);

0 commit comments

Comments
 (0)