@@ -17,7 +17,7 @@ mod passing {
1717
1818 #[ test]
1919 fn empty_input ( ) {
20- let cache = & mut Cache :: new ( 0 , None ) ;
20+ let cache = & mut Some ( Cache :: new ( 0 , None ) ) ;
2121 let client = Client :: new ( ) ;
2222 let document_url: Url = Url :: parse ( "data:," ) . unwrap ( ) ;
2323 let options = Options :: default ( ) ;
@@ -30,7 +30,7 @@ mod passing {
3030
3131 #[ test]
3232 fn trim_if_empty ( ) {
33- let cache = & mut Cache :: new ( 0 , None ) ;
33+ let cache = & mut Some ( Cache :: new ( 0 , None ) ) ;
3434 let client = Client :: new ( ) ;
3535 let document_url: Url = Url :: parse ( "https://doesntmatter.local/" ) . unwrap ( ) ;
3636 let options = Options :: default ( ) ;
@@ -43,7 +43,7 @@ mod passing {
4343
4444 #[ test]
4545 fn style_exclude_unquoted_images ( ) {
46- let cache = & mut Cache :: new ( 0 , None ) ;
46+ let cache = & mut Some ( Cache :: new ( 0 , None ) ) ;
4747 let client = Client :: new ( ) ;
4848 let document_url: Url = Url :: parse ( "https://doesntmatter.local/" ) . unwrap ( ) ;
4949 let mut options = Options :: default ( ) ;
@@ -75,7 +75,7 @@ mod passing {
7575
7676 #[ test]
7777 fn style_exclude_single_quoted_images ( ) {
78- let cache = & mut Cache :: new ( 0 , None ) ;
78+ let cache = & mut Some ( Cache :: new ( 0 , None ) ) ;
7979 let client = Client :: new ( ) ;
8080 let document_url: Url = Url :: parse ( "data:," ) . unwrap ( ) ;
8181 let mut options = Options :: default ( ) ;
@@ -107,7 +107,7 @@ mod passing {
107107
108108 #[ test]
109109 fn style_block ( ) {
110- let cache = & mut Cache :: new ( 0 , None ) ;
110+ let cache = & mut Some ( Cache :: new ( 0 , None ) ) ;
111111 let client = Client :: new ( ) ;
112112 let document_url: Url = Url :: parse ( "file:///" ) . unwrap ( ) ;
113113 let mut options = Options :: default ( ) ;
@@ -129,7 +129,7 @@ mod passing {
129129
130130 #[ test]
131131 fn attribute_selectors ( ) {
132- let cache = & mut Cache :: new ( 0 , None ) ;
132+ let cache = & mut Some ( Cache :: new ( 0 , None ) ) ;
133133 let client = Client :: new ( ) ;
134134 let document_url: Url = Url :: parse ( "https://doesntmatter.local/" ) . unwrap ( ) ;
135135 let mut options = Options :: default ( ) ;
@@ -173,7 +173,7 @@ mod passing {
173173
174174 #[ test]
175175 fn import_string ( ) {
176- let cache = & mut Cache :: new ( 0 , None ) ;
176+ let cache = & mut Some ( Cache :: new ( 0 , None ) ) ;
177177 let client = Client :: new ( ) ;
178178 let document_url: Url = Url :: parse ( "https://doesntmatter.local/" ) . unwrap ( ) ;
179179 let mut options = Options :: default ( ) ;
@@ -201,7 +201,7 @@ mod passing {
201201
202202 #[ test]
203203 fn hash_urls ( ) {
204- let cache = & mut Cache :: new ( 0 , None ) ;
204+ let cache = & mut Some ( Cache :: new ( 0 , None ) ) ;
205205 let client = Client :: new ( ) ;
206206 let document_url: Url = Url :: parse ( "https://doesntmatter.local/" ) . unwrap ( ) ;
207207 let mut options = Options :: default ( ) ;
@@ -225,7 +225,7 @@ mod passing {
225225
226226 #[ test]
227227 fn transform_percentages_and_degrees ( ) {
228- let cache = & mut Cache :: new ( 0 , None ) ;
228+ let cache = & mut Some ( Cache :: new ( 0 , None ) ) ;
229229 let client = Client :: new ( ) ;
230230 let document_url: Url = Url :: parse ( "https://doesntmatter.local/" ) . unwrap ( ) ;
231231 let mut options = Options :: default ( ) ;
@@ -247,7 +247,7 @@ mod passing {
247247
248248 #[ test]
249249 fn unusual_indents ( ) {
250- let cache = & mut Cache :: new ( 0 , None ) ;
250+ let cache = & mut Some ( Cache :: new ( 0 , None ) ) ;
251251 let client = Client :: new ( ) ;
252252 let document_url: Url = Url :: parse ( "https://doesntmatter.local/" ) . unwrap ( ) ;
253253 let mut options = Options :: default ( ) ;
@@ -271,7 +271,7 @@ mod passing {
271271
272272 #[ test]
273273 fn exclude_fonts ( ) {
274- let cache = & mut Cache :: new ( 0 , None ) ;
274+ let cache = & mut Some ( Cache :: new ( 0 , None ) ) ;
275275 let client = Client :: new ( ) ;
276276 let document_url: Url = Url :: parse ( "https://doesntmatter.local/" ) . unwrap ( ) ;
277277 let mut options = Options :: default ( ) ;
@@ -319,7 +319,7 @@ mod passing {
319319
320320 #[ test]
321321 fn content ( ) {
322- let cache = & mut Cache :: new ( 0 , None ) ;
322+ let cache = & mut Some ( Cache :: new ( 0 , None ) ) ;
323323 let client = Client :: new ( ) ;
324324 let document_url: Url = Url :: parse ( "data:," ) . unwrap ( ) ;
325325 let mut options = Options :: default ( ) ;
@@ -344,7 +344,7 @@ mod passing {
344344
345345 #[ test]
346346 fn ie_css_hack ( ) {
347- let cache = & mut Cache :: new ( 0 , None ) ;
347+ let cache = & mut Some ( Cache :: new ( 0 , None ) ) ;
348348 let client = Client :: new ( ) ;
349349 let document_url: Url = Url :: parse ( "data:," ) . unwrap ( ) ;
350350 let mut options = Options :: default ( ) ;
0 commit comments