mundane/macros.rs
1// Copyright 2020 The Fuchsia Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5macro_rules! impl_debug {
6 ($type:ty, $str:expr) => {
7 impl ::std::fmt::Debug for $type {
8 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> Result<(), ::std::fmt::Error> {
9 write!(f, $str)
10 }
11 }
12 };
13}