1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
use std::fmt;

#[derive(Debug)]
pub struct Error(tikv_jemalloc_ctl::Error);

impl std::error::Error for Error {}

impl fmt::Display for Error {
	#[inline]
	fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
		self.0.fmt(f)
	}
}

impl From<tikv_jemalloc_ctl::Error> for Error {
	#[inline]
	fn from(other: tikv_jemalloc_ctl::Error) -> Self {
		Self(other)
	}
}