Add some #[track_caller]
This commit is contained in:
parent
2a58f55943
commit
60df0085b8
|
@ -20,8 +20,10 @@ where
|
||||||
type T = T;
|
type T = T;
|
||||||
|
|
||||||
#[inline(always)]
|
#[inline(always)]
|
||||||
|
#[track_caller]
|
||||||
fn into_result_how(self) -> Result<Self::T, How> {
|
fn into_result_how(self) -> Result<Self::T, How> {
|
||||||
#[inline(never)]
|
#[inline(never)]
|
||||||
|
#[track_caller]
|
||||||
fn into<E: std::error::Error>(e: E) -> How {
|
fn into<E: std::error::Error>(e: E) -> How {
|
||||||
How::new(e.to_string())
|
How::new(e.to_string())
|
||||||
}
|
}
|
||||||
|
@ -42,8 +44,10 @@ impl<T> IntoResultHow for Option<T> {
|
||||||
type T = T;
|
type T = T;
|
||||||
|
|
||||||
#[inline(always)]
|
#[inline(always)]
|
||||||
|
#[track_caller]
|
||||||
fn into_result_how(self) -> Result<Self::T, How> {
|
fn into_result_how(self) -> Result<Self::T, How> {
|
||||||
#[inline(never)]
|
#[inline(never)]
|
||||||
|
#[track_caller]
|
||||||
fn into() -> How {
|
fn into() -> How {
|
||||||
How::new("Option::None")
|
How::new("Option::None")
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue