mirror of
https://github.com/fish-shell/fish-shell
synced 2024-11-14 00:47:30 +00:00
flog.rs: allow trailing commas
This commit is contained in:
parent
91008acd3e
commit
f9a48dc946
1 changed files with 2 additions and 2 deletions
|
@ -171,7 +171,7 @@ pub fn flog_impl(s: &str) {
|
|||
}
|
||||
|
||||
macro_rules! FLOG {
|
||||
($category:ident, $($elem:expr),+) => {
|
||||
($category:ident, $($elem:expr),+ $(,)*) => {
|
||||
if crate::flog::categories::$category.enabled.load(std::sync::atomic::Ordering::Relaxed) {
|
||||
#[allow(unused_imports)]
|
||||
use crate::flog::{FloggableDisplay, FloggableDebug};
|
||||
|
@ -191,7 +191,7 @@ macro_rules! FLOG {
|
|||
|
||||
// TODO implement.
|
||||
macro_rules! FLOGF {
|
||||
($category:ident, $($elem:expr),+) => {
|
||||
($category:ident, $($elem:expr),+ $(,)*) => {
|
||||
crate::flog::FLOG!($category, $($elem),*);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue