mirror of
https://git.aramjonghu.dev/AramJonghu/rustlings.git
synced 2026-09-05 09:43:31 +02:00
Add backtrace to CI
This commit is contained in:
@@ -38,6 +38,7 @@ impl<'a> Cmd<'a> {
|
||||
self
|
||||
}
|
||||
|
||||
#[track_caller]
|
||||
fn assert(&self, success: bool) {
|
||||
let rustlings_bin = {
|
||||
let mut path = env::current_exe().unwrap();
|
||||
@@ -87,11 +88,13 @@ impl<'a> Cmd<'a> {
|
||||
}
|
||||
|
||||
#[inline]
|
||||
#[track_caller]
|
||||
fn success(&self) {
|
||||
self.assert(true);
|
||||
}
|
||||
|
||||
#[inline]
|
||||
#[track_caller]
|
||||
fn fail(&self) {
|
||||
self.assert(false);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user