()
| 50 | } |
| 51 | |
| 52 | fn snap_suffix() -> String { |
| 53 | #[cfg_attr( |
| 54 | not(any(feature = "backtrace", feature = "spantrace")), |
| 55 | expect(unused_mut) |
| 56 | )] |
| 57 | let mut suffix: Vec<&'static str> = vec![]; |
| 58 | |
| 59 | #[cfg(feature = "spantrace")] |
| 60 | { |
| 61 | suffix.push("spantrace"); |
| 62 | } |
| 63 | |
| 64 | #[cfg(feature = "backtrace")] |
| 65 | if supports_backtrace() { |
| 66 | suffix.push("backtrace"); |
| 67 | } |
| 68 | |
| 69 | suffix.join("-") |
| 70 | } |
| 71 | |
| 72 | /// Overwrite to create spantraces when necessary. |
| 73 | #[cfg(feature = "spantrace")] |
no test coverage detected