Skip to content

Commit

Permalink
static str now returns itself as src
Browse files Browse the repository at this point in the history
feels like a hack... but ok...
chaining is bad in rust it seems
  • Loading branch information
GlenDC committed Nov 8, 2024
1 parent 6c5c767 commit ab12ccf
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion rama-utils/src/macros/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,11 @@ macro_rules! __static_str_error {
}
}

impl std::error::Error for $name {}
impl std::error::Error for $name {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
Some(self)
}
}
}
}
#[doc(inline)]
Expand Down

0 comments on commit ab12ccf

Please sign in to comment.