diff options
| author | Árni Dagur <agudmundsson@fc-md.umd.edu> | 2020-05-09 19:24:38 -0400 |
|---|---|---|
| committer | Árni Dagur <agudmundsson@fc-md.umd.edu> | 2020-05-09 19:24:38 -0400 |
| commit | ac34c3afb8c019251a18f15acb5ef43d655f1827 (patch) | |
| tree | c3f486a15073a2c944d756941cde19337f8eb0b3 | |
| parent | 05f646792baf08121e6e8b3f798551714194d153 (diff) | |
Revert commit 'Gag stderr for add_filter_list'
| -rw-r--r-- | Cargo.toml | 1 | ||||
| -rw-r--r-- | src/lib.rs | 4 |
2 files changed, 0 insertions, 5 deletions
| @@ -11,7 +11,6 @@ debug = true | |||
| 11 | [dependencies] | 11 | [dependencies] |
| 12 | adblock = "0.2.8" | 12 | adblock = "0.2.8" |
| 13 | pyo3 = "0.9" | 13 | pyo3 = "0.9" |
| 14 | gag = "0.1" | ||
| 15 | 14 | ||
| 16 | [lib] | 15 | [lib] |
| 17 | name="adblock" | 16 | name="adblock" |
| @@ -18,7 +18,6 @@ use pyo3::class::PyObjectProtocol; | |||
| 18 | use pyo3::exceptions::ValueError as PyValueError; | 18 | use pyo3::exceptions::ValueError as PyValueError; |
| 19 | use pyo3::prelude::*; | 19 | use pyo3::prelude::*; |
| 20 | use pyo3::PyErr; | 20 | use pyo3::PyErr; |
| 21 | use gag::Gag; | ||
| 22 | 21 | ||
| 23 | use std::collections::HashMap; | 22 | use std::collections::HashMap; |
| 24 | use std::collections::HashSet; | 23 | use std::collections::HashSet; |
| @@ -351,9 +350,6 @@ impl Engine { | |||
| 351 | /// Add the contents of a block list file to the blocking engine. | 350 | /// Add the contents of a block list file to the blocking engine. |
| 352 | #[text_signature = "($self, filter_list)"] | 351 | #[text_signature = "($self, filter_list)"] |
| 353 | pub fn add_filter_list(&mut self, filter_list: &str) { | 352 | pub fn add_filter_list(&mut self, filter_list: &str) { |
| 354 | // Gag the any messages to stderr. This is necessary until issue | ||
| 355 | // https://github.com/brave/adblock-rust/issues/88 is closed. | ||
| 356 | let _stderr_gag = Gag::stderr(); | ||
| 357 | self.engine.add_filter_list(filter_list); | 353 | self.engine.add_filter_list(filter_list); |
| 358 | } | 354 | } |
| 359 | 355 | ||
