We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0a8b0eb commit 38a2cb3Copy full SHA for 38a2cb3
crates/common/src/io/macros.rs
@@ -146,7 +146,7 @@ macro_rules! __sh_dispatch {
146
// Ensure that the global shell lock is held for as little time as possible.
147
// Also avoids deadlocks in case of nested calls.
148
(@impl $f:ident $shell:expr, $($args:tt)*) => {
149
- match ::core::format_args!($($args)*) {
+ match format!($($args)*) {
150
fmt => $crate::Shell::$f($shell, fmt),
151
}
152
};
@@ -178,7 +178,10 @@ mod tests {
178
179
sh_println!("{:?}", {
180
sh_println!("hi")?;
181
- "nested"
+ solar::data_structures::fmt::from_fn(|f| {
182
+ let _ = sh_println!("even more nested");
183
+ write!(f, "hi 2")
184
+ })
185
})?;
186
187
Ok(())
0 commit comments