Commit eba68e57 authored by Brad King's avatar Brad King Committed by Kitware Robot
Browse files

Merge topic 'minor-cleanups'

70975d06 remove unused macro_rules and macro_use
862babe2

 impl const fn method
Acked-by: Kitware Robot's avatarKitware Robot <kwrobot@kitware.com>
Merge-request: !155
parents ce3b3bb4 70975d06
...@@ -14,9 +14,6 @@ extern crate error_chain; ...@@ -14,9 +14,6 @@ extern crate error_chain;
#[macro_use] #[macro_use]
extern crate log; extern crate log;
#[macro_use]
extern crate serde_derive;
mod crates { mod crates {
// public // public
pub extern crate chrono; pub extern crate chrono;
......
...@@ -15,12 +15,12 @@ macro_rules! impl_id { ...@@ -15,12 +15,12 @@ macro_rules! impl_id {
impl $name { impl $name {
/// Create a new id. /// Create a new id.
pub fn new(id: u64) -> Self { pub const fn new(id: u64) -> Self {
$name(id) $name(id)
} }
/// The value of the id. /// The value of the id.
pub fn value(&self) -> u64 { pub const fn value(&self) -> u64 {
self.0 self.0
} }
} }
...@@ -93,9 +93,3 @@ macro_rules! query_param_slice { ...@@ -93,9 +93,3 @@ macro_rules! query_param_slice {
&[$($x),*] as QueryParamSlice &[$($x),*] as QueryParamSlice
) )
} }
macro_rules! query_param_vec {
( $( $x:expr ),* ) => (
vec![$($x),*] as QueryParamVec
)
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment