From d044df8d15132bd1631ded04f8e7989457a593fc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=81rni=20Dagur?= Date: Wed, 16 Dec 2020 16:14:14 +0000 Subject: Update upstream library, include Cargo.lock --- src/lib.rs | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) (limited to 'src') diff --git a/src/lib.rs b/src/lib.rs index fc837b8..eb84531 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -45,11 +45,6 @@ fn adblock(_py: Python<'_>, m: &PyModule) -> PyResult<()> { pub struct BlockerResult { #[pyo3(get)] pub matched: bool, - /// Normally, Brave Browser returns `200 OK` with an empty body when - /// `matched` is `True`, except if `explicit_cancel` is also `True`, in - /// which case the request is cancelled. - #[pyo3(get)] - pub explicit_cancel: bool, /// Important is used to signal that a rule with the `important` option /// matched. An `important` match means that exceptions should not apply /// and no further checking is neccesary--the request should be blocked @@ -91,7 +86,6 @@ impl Into for RustBlockerResult { fn into(self) -> BlockerResult { BlockerResult { matched: self.matched, - explicit_cancel: self.explicit_cancel, important: self.important, redirect: self.redirect, exception: self.exception, @@ -105,9 +99,8 @@ impl Into for RustBlockerResult { impl PyObjectProtocol for BlockerResult { fn __repr__(&self) -> PyResult { Ok(format!( - "BlockerResult({}, {}, {}, {:?}, {:?}, {:?}, {:?})", + "BlockerResult({}, {}, {:?}, {:?}, {:?}, {:?})", self.matched, - self.explicit_cancel, self.important, self.redirect, self.exception, -- cgit v1.2.3