File: 2001_color-backtrace.patch

package info (click to toggle)
rust-notify-rust 4.11.7-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 592 kB
  • sloc: sh: 18; makefile: 4
file content (63 lines) | stat: -rw-r--r-- 1,393 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
Description: avoid not-in-Debian crate color-backtrace
Author: Jonas Smedegaard <dr@jones.dk>
Last-Update: 2024-08-07
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -48,8 +48,6 @@
 images = ["image", "lazy_static"]
 
 [dev-dependencies]
-color-backtrace = "0.7" # wait for MSVR 1.70 to update
-ctor = "0.2"
 maplit = "1.0"
 
 [dev-dependencies.async-std]
--- a/examples/at_bus.rs
+++ b/examples/at_bus.rs
@@ -10,7 +10,6 @@
         "RUST_LOG",
         "simple=trace,zbus=trace,server=trace,notify_rust=trace",
     );
-    color_backtrace::install();
     #[cfg(feature = "env_logger")]
     env_logger::init();
 
--- a/src/hints/tests.rs
+++ b/src/hints/tests.rs
@@ -1,18 +1,11 @@
 #![cfg(all(test, unix, not(target_os = "macos")))]
 
 use dbus::arg::messageitem::MessageItem as Item;
-use ctor::ctor;
 
 use super::*;
 use self::Hint as Hint;
 use super::Urgency::*;
 
-
-#[ctor]
-fn init_color_backtrace() {
-    color_backtrace::install();
-}
-
 #[test]
 fn hint_to_item() {
     let category = &Hint::Category("test-me".to_owned());
--- a/tests/realworld.rs
+++ b/tests/realworld.rs
@@ -10,13 +10,6 @@
     use notify_rust::Image;
     use notify_rust::*;
 
-    use ctor::ctor;
-
-    #[ctor]
-    fn init_color_backtrace() {
-        color_backtrace::install();
-    }
-
     #[test]
     fn burst() {
         for msg in &[