(&self, location: &str)
| 122 | |
| 123 | impl css_inline::StylesheetResolver for UnsupportedResolver { |
| 124 | fn retrieve(&self, location: &str) -> css_inline::Result<String> { |
| 125 | let message = if location.starts_with("https") |
| 126 | || location.starts_with("http") |
| 127 | { |
| 128 | format!( |
| 129 | "Loading remote stylesheets is not supported on WASM: {location}" |
| 130 | ) |
| 131 | } else { |
| 132 | format!("Loading local files is not supported on WASM: {location}") |
| 133 | }; |
| 134 | Err(self.unsupported(&message)) |
| 135 | } |
| 136 | } |
| 137 | Arc::new(UnsupportedResolver) |
| 138 | } |
nothing calls this directly
no test coverage detected