Debian Codegraph @

debian/patches/2003_avoid_color-backtrace.patch

raw symbols SCIP
1 Description: avoid not-in-Debian crate color-backtrace
2 Author: Jonas Smedegaard <[email protected]>
3 Last-Update: 2024-08-07
4 ---
5 This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
6 --- a/Cargo.toml
7 +++ b/Cargo.toml
8 @@ -49,7 +49,6 @@
9 futures-lite = { version = "2.6.1" }
10
11 [dev-dependencies]
12 -color-backtrace = "0.7" # wait for MSVR 1.70 to update
13 env_logger = "0.11"
14 maplit = "1.0"
15 cfg-if = "1.0"
16 --- a/examples/at_bus.rs
17 +++ b/examples/at_bus.rs
18 @@ -10,7 +10,6 @@
19 "RUST_LOG",
20 "simple=trace,zbus=trace,server=trace,notify_rust=trace",
21 );
22 - color_backtrace::install();
23 #[cfg(feature = "env_logger")]
24 let _ = env_logger::builder().is_test(true).try_init();
25
26 --- a/src/hints/tests.rs
27 +++ b/src/hints/tests.rs
28 @@ -5,10 +5,6 @@
29 use self::Hint;
30 use super::{Urgency::*, *};
31
32 -static _INIT: std::sync::LazyLock<()> = std::sync::LazyLock::new(|| {
33 - color_backtrace::install();
34 -});
35 -
36 #[test]
37 fn hint_to_item() {
38 let category = &Hint::Category("test-me".to_owned());
39 --- a/tests/realworld.rs
40 +++ b/tests/realworld.rs
41 @@ -10,10 +10,6 @@
42 use notify_rust::Image;
43 use notify_rust::*;
44
45 - static _INIT: std::sync::LazyLock<()> = std::sync::LazyLock::new(|| {
46 - color_backtrace::install();
47 - });
48 -
49 #[test]
50 fn burst() {
51 for msg in &[