Move byte formatting macro to macro module
This commit is contained in:
parent
10a76ec3a1
commit
691d6ac895
2 changed files with 6 additions and 7 deletions
|
@ -2,15 +2,8 @@ use crate::dbs::Executor;
|
|||
use crate::dbs::Options;
|
||||
use crate::dbs::Runtime;
|
||||
use crate::err::Error;
|
||||
use bytes::Bytes;
|
||||
use hyper::body::Sender;
|
||||
|
||||
macro_rules! output {
|
||||
($expression:expr) => {
|
||||
Bytes::from(format!("{}\n", $expression))
|
||||
};
|
||||
}
|
||||
|
||||
impl Executor {
|
||||
pub async fn export(
|
||||
&mut self,
|
||||
|
|
|
@ -1,3 +1,9 @@
|
|||
macro_rules! output {
|
||||
($expression:expr) => {
|
||||
bytes::Bytes::from(format!("{}\n", $expression))
|
||||
};
|
||||
}
|
||||
|
||||
macro_rules! map {
|
||||
($($k:expr => $v:expr),* $(,)?) => {{
|
||||
let mut m = ::std::collections::BTreeMap::new();
|
||||
|
|
Loading…
Reference in a new issue