fixup! Correctly create artificial span for formatting closure body

This commit is contained in:
Ayaz Hafiz 2020-08-15 13:38:06 -07:00 committed by Caleb Cartwright
parent 0f29ff6da0
commit dd32de74ce
2 changed files with 14 additions and 0 deletions

View File

@ -0,0 +1,4 @@
pub const NAME_MAX: usize = {
#[cfg(target_os = "linux")] { 1024 }
#[cfg(target_os = "freebsd")] { 255 }
};

View File

@ -0,0 +1,10 @@
pub const NAME_MAX: usize = {
#[cfg(target_os = "linux")]
{
1024
}
#[cfg(target_os = "freebsd")]
{
255
}
};