refactor: remove location_opt and DebugFormat (#3830)

Signed-off-by: Ruihang Xia <waynestxia@gmail.com>
This commit is contained in:
Ruihang Xia
2024-04-28 19:18:55 +08:00
committed by GitHub
parent 08263995f6
commit 3dac7cbe37
9 changed files with 3 additions and 248 deletions

View File

@@ -48,12 +48,4 @@ impl ErrorExt for Error {
fn as_any(&self) -> &dyn Any {
self
}
fn location_opt(&self) -> Option<common_error::snafu::Location> {
match self {
Error::BuildRuntime { location, .. }
| Error::IllegalState { location, .. }
| Error::WaitGcTaskStop { location, .. } => Some(*location),
}
}
}