Skip to content

Commit 40c8a4a

Browse files
authored
Merge pull request #20 from rusty-sec/fix_bar
fix bar
2 parents 5e7c47a + d0a4a1b commit 40c8a4a

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

src/core/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,7 @@ impl<'a> LuaLoader {
178178

179179
lua.context(|ctx| {
180180
let global = ctx.globals();
181+
bar.inc(1);
181182
if global.get::<_, bool>("valid".to_owned()).unwrap() == true {
182183
let out = global.get::<_, rlua::Table>("report".to_owned()).unwrap();
183184
debug!("VALID BUG ");
@@ -190,7 +191,6 @@ impl<'a> LuaLoader {
190191
self.write_report(Arc::new(Mutex::new(output_dir)), &results);
191192
}
192193
});
193-
bar.inc(1);
194194
Ok(())
195195
}
196196
}

src/lib.rs

-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@ impl Lotus {
3636
let _ = lualoader
3737
.run_scan(&bar, &output_path, &script_out, url)
3838
.unwrap();
39-
bar.inc(1);
4039
});
4140
});
4241
});

0 commit comments

Comments
 (0)