metrics_jemalloc/
error.rs

1use std::fmt;
2
3#[derive(Debug)]
4pub struct Error(tikv_jemalloc_ctl::Error);
5
6impl std::error::Error for Error {}
7
8impl fmt::Display for Error {
9	#[inline]
10	fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
11		self.0.fmt(f)
12	}
13}
14
15impl From<tikv_jemalloc_ctl::Error> for Error {
16	#[inline]
17	fn from(other: tikv_jemalloc_ctl::Error) -> Self {
18		Self(other)
19	}
20}
21