Skip to content

Merge pull request #245 from bylerbk/configurable-client-timeout #236

Merge pull request #245 from bylerbk/configurable-client-timeout

Merge pull request #245 from bylerbk/configurable-client-timeout #236

GitHub Actions / clippy succeeded Oct 21, 2024 in 1s

clippy

86 warnings

Details

Results

Message level Amount
Internal compiler error 0
Error 0
Warning 86
Note 0
Help 0

Versions

  • rustc 1.82.0 (f6e511eec 2024-10-15)
  • cargo 1.82.0 (8f40fc59f 2024-08-21)
  • clippy 0.1.82 (f6e511e 2024-10-15)

Annotations

Check warning on line 118 in thirtyfour/src/web_element.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

the `Err`-variant returned from this function is very large

warning: the `Err`-variant returned from this function is very large
   --> thirtyfour/src/web_element.rs:118:30
    |
118 |     pub fn to_json(&self) -> WebDriverResult<Value> {
    |                              ^^^^^^^^^^^^^^^^^^^^^^
    |
   ::: thirtyfour/src/error.rs:137:5
    |
137 |     NotInSpec(WebDriverErrorInfo),
    |     ----------------------------- the largest variant contains at least 176 bytes
138 |     #[error("The click event was intercepted by another element: {0}")]
139 |     ElementClickIntercepted(WebDriverErrorInfo),
    |     ------------------------------------------- the variant `ElementClickIntercepted` contains at least 176 bytes
140 |     #[error("The element is not interactable: {0}")]
141 |     ElementNotInteractable(WebDriverErrorInfo),
    |     ------------------------------------------ the variant `ElementNotInteractable` contains at least 176 bytes
142 |     #[error("The certificate is insecure: {0}")]
143 |     InsecureCertificate(WebDriverErrorInfo),
    |     --------------------------------------- the variant `InsecureCertificate` contains at least 176 bytes
144 |     #[error("An argument passed to the WebDriver server was invalid: {0}")]
145 |     InvalidArgument(WebDriverErrorInfo),
    |     ----------------------------------- the variant `InvalidArgument` contains at least 176 bytes
...
149 |     InvalidCookieDomain(WebDriverErrorInfo),
    |     --------------------------------------- the variant `InvalidCookieDomain` contains at least 176 bytes
150 |     #[error("The element is in an invalid state: {0}")]
151 |     InvalidElementState(WebDriverErrorInfo),
    |     --------------------------------------- the variant `InvalidElementState` contains at least 176 bytes
152 |     #[error("The specified element selector is invalid: {0}")]
153 |     InvalidSelector(WebDriverErrorInfo),
    |     ----------------------------------- the variant `InvalidSelector` contains at least 176 bytes
154 |     #[error("The WebDriver session id is invalid: {0}")]
155 |     InvalidSessionId(WebDriverErrorInfo),
    |     ------------------------------------ the variant `InvalidSessionId` contains at least 176 bytes
156 |     #[error("The Javascript code returned an error: {0}")]
157 |     JavascriptError(WebDriverErrorInfo),
    |     ----------------------------------- the variant `JavascriptError` contains at least 176 bytes
158 |     #[error("Unable to scroll the element into the viewport: {0}")]
159 |     MoveTargetOutOfBounds(WebDriverErrorInfo),
    |     ----------------------------------------- the variant `MoveTargetOutOfBounds` contains at least 176 bytes
160 |     #[error("Alert not found: {0}")]
161 |     NoSuchAlert(WebDriverErrorInfo),
    |     ------------------------------- the variant `NoSuchAlert` contains at least 176 bytes
162 |     #[error("Cookie not found: {0}")]
163 |     NoSuchCookie(WebDriverErrorInfo),
    |     -------------------------------- the variant `NoSuchCookie` contains at least 176 bytes
164 |     #[error("Element not found: {0}")]
165 |     NoSuchElement(WebDriverErrorInfo),
    |     --------------------------------- the variant `NoSuchElement` contains at least 176 bytes
166 |     #[error("Frame not found: {0}")]
167 |     NoSuchFrame(WebDriverErrorInfo),
    |     ------------------------------- the variant `NoSuchFrame` contains at least 176 bytes
168 |     #[error("Window not found: {0}")]
169 |     NoSuchWindow(WebDriverErrorInfo),
    |     -------------------------------- the variant `NoSuchWindow` contains at least 176 bytes
170 |     #[error("The Javascript code did not complete within the script timeout (see WebDriver::set_script_timeout()): {0}")]
171 |     ScriptTimeout(WebDriverErrorInfo),
    |     --------------------------------- the variant `ScriptTimeout` contains at least 176 bytes
172 |     #[error("Unable to create WebDriver session: {0}")]
173 |     SessionNotCreated(WebDriverErrorInfo),
    |     ------------------------------------- the variant `SessionNotCreated` contains at least 176 bytes
174 |     #[error("Element is stale: {0}")]
175 |     StaleElementReference(WebDriverErrorInfo),
    |     ----------------------------------------- the variant `StaleElementReference` contains at least 176 bytes
176 |     #[error("Operation timed out: {0}")]
177 |     WebDriverTimeout(WebDriverErrorInfo),
    |     ------------------------------------ the variant `WebDriverTimeout` contains at least 176 bytes
178 |     #[error("Unable to set cookie: {0}")]
179 |     UnableToSetCookie(WebDriverErrorInfo),
    |     ------------------------------------- the variant `UnableToSetCookie` contains at least 176 bytes
180 |     #[error("Unable to capture screenshot: {0}")]
181 |     UnableToCaptureScreen(WebDriverErrorInfo),
    |     ----------------------------------------- the variant `UnableToCaptureScreen` contains at least 176 bytes
182 |     #[error("An unexpected alert is currently open: {0}")]
183 |     UnexpectedAlertOpen(WebDriverErrorInfo),
    |     --------------------------------------- the variant `UnexpectedAlertOpen` contains at least 176 bytes
184 |     #[error("Unknown command: {0}")]
185 |     UnknownCommand(WebDriverErrorInfo),
    |     ---------------------------------- the variant `UnknownCommand` contains at least 176 bytes
186 |     #[error("Unknown error: {0}")]
187 |     UnknownError(WebDriverErrorInfo),
    |     -------------------------------- the variant `UnknownError` contains at least 176 bytes
188 |     #[error("Unknown method: {0}")]
189 |     UnknownMethod(WebDriverErrorInfo),
    |     --------------------------------- the variant `UnknownMethod` contains at least 176 bytes
190 |     #[error("Unsupport operation: {0}")]
191 |     UnsupportedOperation(WebDriverErrorInfo),
    |     ---------------------------------------- the variant `UnsupportedOperation` contains at least 176 bytes
    |
    = help: try reducing the size of `error::WebDriverError`, for example by boxing large elements or replacing it with `Box<error::WebDriverError>`
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err

Check warning on line 105 in thirtyfour/src/web_element.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

the `Err`-variant returned from this function is very large

warning: the `Err`-variant returned from this function is very large
   --> thirtyfour/src/web_element.rs:105:67
    |
105 |     pub fn from_json(value: Value, handle: Arc<SessionHandle>) -> WebDriverResult<Self> {
    |                                                                   ^^^^^^^^^^^^^^^^^^^^^
    |
   ::: thirtyfour/src/error.rs:137:5
    |
137 |     NotInSpec(WebDriverErrorInfo),
    |     ----------------------------- the largest variant contains at least 176 bytes
138 |     #[error("The click event was intercepted by another element: {0}")]
139 |     ElementClickIntercepted(WebDriverErrorInfo),
    |     ------------------------------------------- the variant `ElementClickIntercepted` contains at least 176 bytes
140 |     #[error("The element is not interactable: {0}")]
141 |     ElementNotInteractable(WebDriverErrorInfo),
    |     ------------------------------------------ the variant `ElementNotInteractable` contains at least 176 bytes
142 |     #[error("The certificate is insecure: {0}")]
143 |     InsecureCertificate(WebDriverErrorInfo),
    |     --------------------------------------- the variant `InsecureCertificate` contains at least 176 bytes
144 |     #[error("An argument passed to the WebDriver server was invalid: {0}")]
145 |     InvalidArgument(WebDriverErrorInfo),
    |     ----------------------------------- the variant `InvalidArgument` contains at least 176 bytes
...
149 |     InvalidCookieDomain(WebDriverErrorInfo),
    |     --------------------------------------- the variant `InvalidCookieDomain` contains at least 176 bytes
150 |     #[error("The element is in an invalid state: {0}")]
151 |     InvalidElementState(WebDriverErrorInfo),
    |     --------------------------------------- the variant `InvalidElementState` contains at least 176 bytes
152 |     #[error("The specified element selector is invalid: {0}")]
153 |     InvalidSelector(WebDriverErrorInfo),
    |     ----------------------------------- the variant `InvalidSelector` contains at least 176 bytes
154 |     #[error("The WebDriver session id is invalid: {0}")]
155 |     InvalidSessionId(WebDriverErrorInfo),
    |     ------------------------------------ the variant `InvalidSessionId` contains at least 176 bytes
156 |     #[error("The Javascript code returned an error: {0}")]
157 |     JavascriptError(WebDriverErrorInfo),
    |     ----------------------------------- the variant `JavascriptError` contains at least 176 bytes
158 |     #[error("Unable to scroll the element into the viewport: {0}")]
159 |     MoveTargetOutOfBounds(WebDriverErrorInfo),
    |     ----------------------------------------- the variant `MoveTargetOutOfBounds` contains at least 176 bytes
160 |     #[error("Alert not found: {0}")]
161 |     NoSuchAlert(WebDriverErrorInfo),
    |     ------------------------------- the variant `NoSuchAlert` contains at least 176 bytes
162 |     #[error("Cookie not found: {0}")]
163 |     NoSuchCookie(WebDriverErrorInfo),
    |     -------------------------------- the variant `NoSuchCookie` contains at least 176 bytes
164 |     #[error("Element not found: {0}")]
165 |     NoSuchElement(WebDriverErrorInfo),
    |     --------------------------------- the variant `NoSuchElement` contains at least 176 bytes
166 |     #[error("Frame not found: {0}")]
167 |     NoSuchFrame(WebDriverErrorInfo),
    |     ------------------------------- the variant `NoSuchFrame` contains at least 176 bytes
168 |     #[error("Window not found: {0}")]
169 |     NoSuchWindow(WebDriverErrorInfo),
    |     -------------------------------- the variant `NoSuchWindow` contains at least 176 bytes
170 |     #[error("The Javascript code did not complete within the script timeout (see WebDriver::set_script_timeout()): {0}")]
171 |     ScriptTimeout(WebDriverErrorInfo),
    |     --------------------------------- the variant `ScriptTimeout` contains at least 176 bytes
172 |     #[error("Unable to create WebDriver session: {0}")]
173 |     SessionNotCreated(WebDriverErrorInfo),
    |     ------------------------------------- the variant `SessionNotCreated` contains at least 176 bytes
174 |     #[error("Element is stale: {0}")]
175 |     StaleElementReference(WebDriverErrorInfo),
    |     ----------------------------------------- the variant `StaleElementReference` contains at least 176 bytes
176 |     #[error("Operation timed out: {0}")]
177 |     WebDriverTimeout(WebDriverErrorInfo),
    |     ------------------------------------ the variant `WebDriverTimeout` contains at least 176 bytes
178 |     #[error("Unable to set cookie: {0}")]
179 |     UnableToSetCookie(WebDriverErrorInfo),
    |     ------------------------------------- the variant `UnableToSetCookie` contains at least 176 bytes
180 |     #[error("Unable to capture screenshot: {0}")]
181 |     UnableToCaptureScreen(WebDriverErrorInfo),
    |     ----------------------------------------- the variant `UnableToCaptureScreen` contains at least 176 bytes
182 |     #[error("An unexpected alert is currently open: {0}")]
183 |     UnexpectedAlertOpen(WebDriverErrorInfo),
    |     --------------------------------------- the variant `UnexpectedAlertOpen` contains at least 176 bytes
184 |     #[error("Unknown command: {0}")]
185 |     UnknownCommand(WebDriverErrorInfo),
    |     ---------------------------------- the variant `UnknownCommand` contains at least 176 bytes
186 |     #[error("Unknown error: {0}")]
187 |     UnknownError(WebDriverErrorInfo),
    |     -------------------------------- the variant `UnknownError` contains at least 176 bytes
188 |     #[error("Unknown method: {0}")]
189 |     UnknownMethod(WebDriverErrorInfo),
    |     --------------------------------- the variant `UnknownMethod` contains at least 176 bytes
190 |     #[error("Unsupport operation: {0}")]
191 |     UnsupportedOperation(WebDriverErrorInfo),
    |     ---------------------------------------- the variant `UnsupportedOperation` contains at least 176 bytes
    |
    = help: try reducing the size of `error::WebDriverError`, for example by boxing large elements or replacing it with `Box<error::WebDriverError>`
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err

Check warning on line 143 in thirtyfour/src/support.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

the `Err`-variant returned from this function is very large

warning: the `Err`-variant returned from this function is very large
   --> thirtyfour/src/support.rs:143:37
    |
143 | pub fn base64_decode(data: &str) -> WebDriverResult<Vec<u8>> {
    |                                     ^^^^^^^^^^^^^^^^^^^^^^^^
    |
   ::: thirtyfour/src/error.rs:137:5
    |
137 |     NotInSpec(WebDriverErrorInfo),
    |     ----------------------------- the largest variant contains at least 176 bytes
138 |     #[error("The click event was intercepted by another element: {0}")]
139 |     ElementClickIntercepted(WebDriverErrorInfo),
    |     ------------------------------------------- the variant `ElementClickIntercepted` contains at least 176 bytes
140 |     #[error("The element is not interactable: {0}")]
141 |     ElementNotInteractable(WebDriverErrorInfo),
    |     ------------------------------------------ the variant `ElementNotInteractable` contains at least 176 bytes
142 |     #[error("The certificate is insecure: {0}")]
143 |     InsecureCertificate(WebDriverErrorInfo),
    |     --------------------------------------- the variant `InsecureCertificate` contains at least 176 bytes
144 |     #[error("An argument passed to the WebDriver server was invalid: {0}")]
145 |     InvalidArgument(WebDriverErrorInfo),
    |     ----------------------------------- the variant `InvalidArgument` contains at least 176 bytes
...
149 |     InvalidCookieDomain(WebDriverErrorInfo),
    |     --------------------------------------- the variant `InvalidCookieDomain` contains at least 176 bytes
150 |     #[error("The element is in an invalid state: {0}")]
151 |     InvalidElementState(WebDriverErrorInfo),
    |     --------------------------------------- the variant `InvalidElementState` contains at least 176 bytes
152 |     #[error("The specified element selector is invalid: {0}")]
153 |     InvalidSelector(WebDriverErrorInfo),
    |     ----------------------------------- the variant `InvalidSelector` contains at least 176 bytes
154 |     #[error("The WebDriver session id is invalid: {0}")]
155 |     InvalidSessionId(WebDriverErrorInfo),
    |     ------------------------------------ the variant `InvalidSessionId` contains at least 176 bytes
156 |     #[error("The Javascript code returned an error: {0}")]
157 |     JavascriptError(WebDriverErrorInfo),
    |     ----------------------------------- the variant `JavascriptError` contains at least 176 bytes
158 |     #[error("Unable to scroll the element into the viewport: {0}")]
159 |     MoveTargetOutOfBounds(WebDriverErrorInfo),
    |     ----------------------------------------- the variant `MoveTargetOutOfBounds` contains at least 176 bytes
160 |     #[error("Alert not found: {0}")]
161 |     NoSuchAlert(WebDriverErrorInfo),
    |     ------------------------------- the variant `NoSuchAlert` contains at least 176 bytes
162 |     #[error("Cookie not found: {0}")]
163 |     NoSuchCookie(WebDriverErrorInfo),
    |     -------------------------------- the variant `NoSuchCookie` contains at least 176 bytes
164 |     #[error("Element not found: {0}")]
165 |     NoSuchElement(WebDriverErrorInfo),
    |     --------------------------------- the variant `NoSuchElement` contains at least 176 bytes
166 |     #[error("Frame not found: {0}")]
167 |     NoSuchFrame(WebDriverErrorInfo),
    |     ------------------------------- the variant `NoSuchFrame` contains at least 176 bytes
168 |     #[error("Window not found: {0}")]
169 |     NoSuchWindow(WebDriverErrorInfo),
    |     -------------------------------- the variant `NoSuchWindow` contains at least 176 bytes
170 |     #[error("The Javascript code did not complete within the script timeout (see WebDriver::set_script_timeout()): {0}")]
171 |     ScriptTimeout(WebDriverErrorInfo),
    |     --------------------------------- the variant `ScriptTimeout` contains at least 176 bytes
172 |     #[error("Unable to create WebDriver session: {0}")]
173 |     SessionNotCreated(WebDriverErrorInfo),
    |     ------------------------------------- the variant `SessionNotCreated` contains at least 176 bytes
174 |     #[error("Element is stale: {0}")]
175 |     StaleElementReference(WebDriverErrorInfo),
    |     ----------------------------------------- the variant `StaleElementReference` contains at least 176 bytes
176 |     #[error("Operation timed out: {0}")]
177 |     WebDriverTimeout(WebDriverErrorInfo),
    |     ------------------------------------ the variant `WebDriverTimeout` contains at least 176 bytes
178 |     #[error("Unable to set cookie: {0}")]
179 |     UnableToSetCookie(WebDriverErrorInfo),
    |     ------------------------------------- the variant `UnableToSetCookie` contains at least 176 bytes
180 |     #[error("Unable to capture screenshot: {0}")]
181 |     UnableToCaptureScreen(WebDriverErrorInfo),
    |     ----------------------------------------- the variant `UnableToCaptureScreen` contains at least 176 bytes
182 |     #[error("An unexpected alert is currently open: {0}")]
183 |     UnexpectedAlertOpen(WebDriverErrorInfo),
    |     --------------------------------------- the variant `UnexpectedAlertOpen` contains at least 176 bytes
184 |     #[error("Unknown command: {0}")]
185 |     UnknownCommand(WebDriverErrorInfo),
    |     ---------------------------------- the variant `UnknownCommand` contains at least 176 bytes
186 |     #[error("Unknown error: {0}")]
187 |     UnknownError(WebDriverErrorInfo),
    |     -------------------------------- the variant `UnknownError` contains at least 176 bytes
188 |     #[error("Unknown method: {0}")]
189 |     UnknownMethod(WebDriverErrorInfo),
    |     --------------------------------- the variant `UnknownMethod` contains at least 176 bytes
190 |     #[error("Unsupport operation: {0}")]
191 |     UnsupportedOperation(WebDriverErrorInfo),
    |     ---------------------------------------- the variant `UnsupportedOperation` contains at least 176 bytes
    |
    = help: try reducing the size of `error::WebDriverError`, for example by boxing large elements or replacing it with `Box<error::WebDriverError>`
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err

Check warning on line 79 in thirtyfour/src/session/scriptret.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

the `Err`-variant returned from this function is very large

warning: the `Err`-variant returned from this function is very large
   --> thirtyfour/src/session/scriptret.rs:79:34
    |
79  |     pub fn get_elements(self) -> WebDriverResult<Vec<WebElement>> {
    |                                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    |
   ::: thirtyfour/src/error.rs:137:5
    |
137 |     NotInSpec(WebDriverErrorInfo),
    |     ----------------------------- the largest variant contains at least 176 bytes
138 |     #[error("The click event was intercepted by another element: {0}")]
139 |     ElementClickIntercepted(WebDriverErrorInfo),
    |     ------------------------------------------- the variant `ElementClickIntercepted` contains at least 176 bytes
140 |     #[error("The element is not interactable: {0}")]
141 |     ElementNotInteractable(WebDriverErrorInfo),
    |     ------------------------------------------ the variant `ElementNotInteractable` contains at least 176 bytes
142 |     #[error("The certificate is insecure: {0}")]
143 |     InsecureCertificate(WebDriverErrorInfo),
    |     --------------------------------------- the variant `InsecureCertificate` contains at least 176 bytes
144 |     #[error("An argument passed to the WebDriver server was invalid: {0}")]
145 |     InvalidArgument(WebDriverErrorInfo),
    |     ----------------------------------- the variant `InvalidArgument` contains at least 176 bytes
...
149 |     InvalidCookieDomain(WebDriverErrorInfo),
    |     --------------------------------------- the variant `InvalidCookieDomain` contains at least 176 bytes
150 |     #[error("The element is in an invalid state: {0}")]
151 |     InvalidElementState(WebDriverErrorInfo),
    |     --------------------------------------- the variant `InvalidElementState` contains at least 176 bytes
152 |     #[error("The specified element selector is invalid: {0}")]
153 |     InvalidSelector(WebDriverErrorInfo),
    |     ----------------------------------- the variant `InvalidSelector` contains at least 176 bytes
154 |     #[error("The WebDriver session id is invalid: {0}")]
155 |     InvalidSessionId(WebDriverErrorInfo),
    |     ------------------------------------ the variant `InvalidSessionId` contains at least 176 bytes
156 |     #[error("The Javascript code returned an error: {0}")]
157 |     JavascriptError(WebDriverErrorInfo),
    |     ----------------------------------- the variant `JavascriptError` contains at least 176 bytes
158 |     #[error("Unable to scroll the element into the viewport: {0}")]
159 |     MoveTargetOutOfBounds(WebDriverErrorInfo),
    |     ----------------------------------------- the variant `MoveTargetOutOfBounds` contains at least 176 bytes
160 |     #[error("Alert not found: {0}")]
161 |     NoSuchAlert(WebDriverErrorInfo),
    |     ------------------------------- the variant `NoSuchAlert` contains at least 176 bytes
162 |     #[error("Cookie not found: {0}")]
163 |     NoSuchCookie(WebDriverErrorInfo),
    |     -------------------------------- the variant `NoSuchCookie` contains at least 176 bytes
164 |     #[error("Element not found: {0}")]
165 |     NoSuchElement(WebDriverErrorInfo),
    |     --------------------------------- the variant `NoSuchElement` contains at least 176 bytes
166 |     #[error("Frame not found: {0}")]
167 |     NoSuchFrame(WebDriverErrorInfo),
    |     ------------------------------- the variant `NoSuchFrame` contains at least 176 bytes
168 |     #[error("Window not found: {0}")]
169 |     NoSuchWindow(WebDriverErrorInfo),
    |     -------------------------------- the variant `NoSuchWindow` contains at least 176 bytes
170 |     #[error("The Javascript code did not complete within the script timeout (see WebDriver::set_script_timeout()): {0}")]
171 |     ScriptTimeout(WebDriverErrorInfo),
    |     --------------------------------- the variant `ScriptTimeout` contains at least 176 bytes
172 |     #[error("Unable to create WebDriver session: {0}")]
173 |     SessionNotCreated(WebDriverErrorInfo),
    |     ------------------------------------- the variant `SessionNotCreated` contains at least 176 bytes
174 |     #[error("Element is stale: {0}")]
175 |     StaleElementReference(WebDriverErrorInfo),
    |     ----------------------------------------- the variant `StaleElementReference` contains at least 176 bytes
176 |     #[error("Operation timed out: {0}")]
177 |     WebDriverTimeout(WebDriverErrorInfo),
    |     ------------------------------------ the variant `WebDriverTimeout` contains at least 176 bytes
178 |     #[error("Unable to set cookie: {0}")]
179 |     UnableToSetCookie(WebDriverErrorInfo),
    |     ------------------------------------- the variant `UnableToSetCookie` contains at least 176 bytes
180 |     #[error("Unable to capture screenshot: {0}")]
181 |     UnableToCaptureScreen(WebDriverErrorInfo),
    |     ----------------------------------------- the variant `UnableToCaptureScreen` contains at least 176 bytes
182 |     #[error("An unexpected alert is currently open: {0}")]
183 |     UnexpectedAlertOpen(WebDriverErrorInfo),
    |     --------------------------------------- the variant `UnexpectedAlertOpen` contains at least 176 bytes
184 |     #[error("Unknown command: {0}")]
185 |     UnknownCommand(WebDriverErrorInfo),
    |     ---------------------------------- the variant `UnknownCommand` contains at least 176 bytes
186 |     #[error("Unknown error: {0}")]
187 |     UnknownError(WebDriverErrorInfo),
    |     -------------------------------- the variant `UnknownError` contains at least 176 bytes
188 |     #[error("Unknown method: {0}")]
189 |     UnknownMethod(WebDriverErrorInfo),
    |     --------------------------------- the variant `UnknownMethod` contains at least 176 bytes
190 |     #[error("Unsupport operation: {0}")]
191 |     UnsupportedOperation(WebDriverErrorInfo),
    |     ---------------------------------------- the variant `UnsupportedOperation` contains at least 176 bytes
    |
    = help: try reducing the size of `error::WebDriverError`, for example by boxing large elements or replacing it with `Box<error::WebDriverError>`
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err

Check warning on line 71 in thirtyfour/src/session/scriptret.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

the `Err`-variant returned from this function is very large

warning: the `Err`-variant returned from this function is very large
   --> thirtyfour/src/session/scriptret.rs:71:30
    |
71  |     pub fn elements(self) -> WebDriverResult<Vec<WebElement>> {
    |                              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    |
   ::: thirtyfour/src/error.rs:137:5
    |
137 |     NotInSpec(WebDriverErrorInfo),
    |     ----------------------------- the largest variant contains at least 176 bytes
138 |     #[error("The click event was intercepted by another element: {0}")]
139 |     ElementClickIntercepted(WebDriverErrorInfo),
    |     ------------------------------------------- the variant `ElementClickIntercepted` contains at least 176 bytes
140 |     #[error("The element is not interactable: {0}")]
141 |     ElementNotInteractable(WebDriverErrorInfo),
    |     ------------------------------------------ the variant `ElementNotInteractable` contains at least 176 bytes
142 |     #[error("The certificate is insecure: {0}")]
143 |     InsecureCertificate(WebDriverErrorInfo),
    |     --------------------------------------- the variant `InsecureCertificate` contains at least 176 bytes
144 |     #[error("An argument passed to the WebDriver server was invalid: {0}")]
145 |     InvalidArgument(WebDriverErrorInfo),
    |     ----------------------------------- the variant `InvalidArgument` contains at least 176 bytes
...
149 |     InvalidCookieDomain(WebDriverErrorInfo),
    |     --------------------------------------- the variant `InvalidCookieDomain` contains at least 176 bytes
150 |     #[error("The element is in an invalid state: {0}")]
151 |     InvalidElementState(WebDriverErrorInfo),
    |     --------------------------------------- the variant `InvalidElementState` contains at least 176 bytes
152 |     #[error("The specified element selector is invalid: {0}")]
153 |     InvalidSelector(WebDriverErrorInfo),
    |     ----------------------------------- the variant `InvalidSelector` contains at least 176 bytes
154 |     #[error("The WebDriver session id is invalid: {0}")]
155 |     InvalidSessionId(WebDriverErrorInfo),
    |     ------------------------------------ the variant `InvalidSessionId` contains at least 176 bytes
156 |     #[error("The Javascript code returned an error: {0}")]
157 |     JavascriptError(WebDriverErrorInfo),
    |     ----------------------------------- the variant `JavascriptError` contains at least 176 bytes
158 |     #[error("Unable to scroll the element into the viewport: {0}")]
159 |     MoveTargetOutOfBounds(WebDriverErrorInfo),
    |     ----------------------------------------- the variant `MoveTargetOutOfBounds` contains at least 176 bytes
160 |     #[error("Alert not found: {0}")]
161 |     NoSuchAlert(WebDriverErrorInfo),
    |     ------------------------------- the variant `NoSuchAlert` contains at least 176 bytes
162 |     #[error("Cookie not found: {0}")]
163 |     NoSuchCookie(WebDriverErrorInfo),
    |     -------------------------------- the variant `NoSuchCookie` contains at least 176 bytes
164 |     #[error("Element not found: {0}")]
165 |     NoSuchElement(WebDriverErrorInfo),
    |     --------------------------------- the variant `NoSuchElement` contains at least 176 bytes
166 |     #[error("Frame not found: {0}")]
167 |     NoSuchFrame(WebDriverErrorInfo),
    |     ------------------------------- the variant `NoSuchFrame` contains at least 176 bytes
168 |     #[error("Window not found: {0}")]
169 |     NoSuchWindow(WebDriverErrorInfo),
    |     -------------------------------- the variant `NoSuchWindow` contains at least 176 bytes
170 |     #[error("The Javascript code did not complete within the script timeout (see WebDriver::set_script_timeout()): {0}")]
171 |     ScriptTimeout(WebDriverErrorInfo),
    |     --------------------------------- the variant `ScriptTimeout` contains at least 176 bytes
172 |     #[error("Unable to create WebDriver session: {0}")]
173 |     SessionNotCreated(WebDriverErrorInfo),
    |     ------------------------------------- the variant `SessionNotCreated` contains at least 176 bytes
174 |     #[error("Element is stale: {0}")]
175 |     StaleElementReference(WebDriverErrorInfo),
    |     ----------------------------------------- the variant `StaleElementReference` contains at least 176 bytes
176 |     #[error("Operation timed out: {0}")]
177 |     WebDriverTimeout(WebDriverErrorInfo),
    |     ------------------------------------ the variant `WebDriverTimeout` contains at least 176 bytes
178 |     #[error("Unable to set cookie: {0}")]
179 |     UnableToSetCookie(WebDriverErrorInfo),
    |     ------------------------------------- the variant `UnableToSetCookie` contains at least 176 bytes
180 |     #[error("Unable to capture screenshot: {0}")]
181 |     UnableToCaptureScreen(WebDriverErrorInfo),
    |     ----------------------------------------- the variant `UnableToCaptureScreen` contains at least 176 bytes
182 |     #[error("An unexpected alert is currently open: {0}")]
183 |     UnexpectedAlertOpen(WebDriverErrorInfo),
    |     --------------------------------------- the variant `UnexpectedAlertOpen` contains at least 176 bytes
184 |     #[error("Unknown command: {0}")]
185 |     UnknownCommand(WebDriverErrorInfo),
    |     ---------------------------------- the variant `UnknownCommand` contains at least 176 bytes
186 |     #[error("Unknown error: {0}")]
187 |     UnknownError(WebDriverErrorInfo),
    |     -------------------------------- the variant `UnknownError` contains at least 176 bytes
188 |     #[error("Unknown method: {0}")]
189 |     UnknownMethod(WebDriverErrorInfo),
    |     --------------------------------- the variant `UnknownMethod` contains at least 176 bytes
190 |     #[error("Unsupport operation: {0}")]
191 |     UnsupportedOperation(WebDriverErrorInfo),
    |     ---------------------------------------- the variant `UnsupportedOperation` contains at least 176 bytes
    |
    = help: try reducing the size of `error::WebDriverError`, for example by boxing large elements or replacing it with `Box<error::WebDriverError>`
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err

Check warning on line 64 in thirtyfour/src/session/scriptret.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

the `Err`-variant returned from this function is very large

warning: the `Err`-variant returned from this function is very large
   --> thirtyfour/src/session/scriptret.rs:64:33
    |
64  |     pub fn get_element(self) -> WebDriverResult<WebElement> {
    |                                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^
    |
   ::: thirtyfour/src/error.rs:137:5
    |
137 |     NotInSpec(WebDriverErrorInfo),
    |     ----------------------------- the largest variant contains at least 176 bytes
138 |     #[error("The click event was intercepted by another element: {0}")]
139 |     ElementClickIntercepted(WebDriverErrorInfo),
    |     ------------------------------------------- the variant `ElementClickIntercepted` contains at least 176 bytes
140 |     #[error("The element is not interactable: {0}")]
141 |     ElementNotInteractable(WebDriverErrorInfo),
    |     ------------------------------------------ the variant `ElementNotInteractable` contains at least 176 bytes
142 |     #[error("The certificate is insecure: {0}")]
143 |     InsecureCertificate(WebDriverErrorInfo),
    |     --------------------------------------- the variant `InsecureCertificate` contains at least 176 bytes
144 |     #[error("An argument passed to the WebDriver server was invalid: {0}")]
145 |     InvalidArgument(WebDriverErrorInfo),
    |     ----------------------------------- the variant `InvalidArgument` contains at least 176 bytes
...
149 |     InvalidCookieDomain(WebDriverErrorInfo),
    |     --------------------------------------- the variant `InvalidCookieDomain` contains at least 176 bytes
150 |     #[error("The element is in an invalid state: {0}")]
151 |     InvalidElementState(WebDriverErrorInfo),
    |     --------------------------------------- the variant `InvalidElementState` contains at least 176 bytes
152 |     #[error("The specified element selector is invalid: {0}")]
153 |     InvalidSelector(WebDriverErrorInfo),
    |     ----------------------------------- the variant `InvalidSelector` contains at least 176 bytes
154 |     #[error("The WebDriver session id is invalid: {0}")]
155 |     InvalidSessionId(WebDriverErrorInfo),
    |     ------------------------------------ the variant `InvalidSessionId` contains at least 176 bytes
156 |     #[error("The Javascript code returned an error: {0}")]
157 |     JavascriptError(WebDriverErrorInfo),
    |     ----------------------------------- the variant `JavascriptError` contains at least 176 bytes
158 |     #[error("Unable to scroll the element into the viewport: {0}")]
159 |     MoveTargetOutOfBounds(WebDriverErrorInfo),
    |     ----------------------------------------- the variant `MoveTargetOutOfBounds` contains at least 176 bytes
160 |     #[error("Alert not found: {0}")]
161 |     NoSuchAlert(WebDriverErrorInfo),
    |     ------------------------------- the variant `NoSuchAlert` contains at least 176 bytes
162 |     #[error("Cookie not found: {0}")]
163 |     NoSuchCookie(WebDriverErrorInfo),
    |     -------------------------------- the variant `NoSuchCookie` contains at least 176 bytes
164 |     #[error("Element not found: {0}")]
165 |     NoSuchElement(WebDriverErrorInfo),
    |     --------------------------------- the variant `NoSuchElement` contains at least 176 bytes
166 |     #[error("Frame not found: {0}")]
167 |     NoSuchFrame(WebDriverErrorInfo),
    |     ------------------------------- the variant `NoSuchFrame` contains at least 176 bytes
168 |     #[error("Window not found: {0}")]
169 |     NoSuchWindow(WebDriverErrorInfo),
    |     -------------------------------- the variant `NoSuchWindow` contains at least 176 bytes
170 |     #[error("The Javascript code did not complete within the script timeout (see WebDriver::set_script_timeout()): {0}")]
171 |     ScriptTimeout(WebDriverErrorInfo),
    |     --------------------------------- the variant `ScriptTimeout` contains at least 176 bytes
172 |     #[error("Unable to create WebDriver session: {0}")]
173 |     SessionNotCreated(WebDriverErrorInfo),
    |     ------------------------------------- the variant `SessionNotCreated` contains at least 176 bytes
174 |     #[error("Element is stale: {0}")]
175 |     StaleElementReference(WebDriverErrorInfo),
    |     ----------------------------------------- the variant `StaleElementReference` contains at least 176 bytes
176 |     #[error("Operation timed out: {0}")]
177 |     WebDriverTimeout(WebDriverErrorInfo),
    |     ------------------------------------ the variant `WebDriverTimeout` contains at least 176 bytes
178 |     #[error("Unable to set cookie: {0}")]
179 |     UnableToSetCookie(WebDriverErrorInfo),
    |     ------------------------------------- the variant `UnableToSetCookie` contains at least 176 bytes
180 |     #[error("Unable to capture screenshot: {0}")]
181 |     UnableToCaptureScreen(WebDriverErrorInfo),
    |     ----------------------------------------- the variant `UnableToCaptureScreen` contains at least 176 bytes
182 |     #[error("An unexpected alert is currently open: {0}")]
183 |     UnexpectedAlertOpen(WebDriverErrorInfo),
    |     --------------------------------------- the variant `UnexpectedAlertOpen` contains at least 176 bytes
184 |     #[error("Unknown command: {0}")]
185 |     UnknownCommand(WebDriverErrorInfo),
    |     ---------------------------------- the variant `UnknownCommand` contains at least 176 bytes
186 |     #[error("Unknown error: {0}")]
187 |     UnknownError(WebDriverErrorInfo),
    |     -------------------------------- the variant `UnknownError` contains at least 176 bytes
188 |     #[error("Unknown method: {0}")]
189 |     UnknownMethod(WebDriverErrorInfo),
    |     --------------------------------- the variant `UnknownMethod` contains at least 176 bytes
190 |     #[error("Unsupport operation: {0}")]
191 |     UnsupportedOperation(WebDriverErrorInfo),
    |     ---------------------------------------- the variant `UnsupportedOperation` contains at least 176 bytes
    |
    = help: try reducing the size of `error::WebDriverError`, for example by boxing large elements or replacing it with `Box<error::WebDriverError>`
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err

Check warning on line 58 in thirtyfour/src/session/scriptret.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

the `Err`-variant returned from this function is very large

warning: the `Err`-variant returned from this function is very large
   --> thirtyfour/src/session/scriptret.rs:58:29
    |
58  |     pub fn element(self) -> WebDriverResult<WebElement> {
    |                             ^^^^^^^^^^^^^^^^^^^^^^^^^^^
    |
   ::: thirtyfour/src/error.rs:137:5
    |
137 |     NotInSpec(WebDriverErrorInfo),
    |     ----------------------------- the largest variant contains at least 176 bytes
138 |     #[error("The click event was intercepted by another element: {0}")]
139 |     ElementClickIntercepted(WebDriverErrorInfo),
    |     ------------------------------------------- the variant `ElementClickIntercepted` contains at least 176 bytes
140 |     #[error("The element is not interactable: {0}")]
141 |     ElementNotInteractable(WebDriverErrorInfo),
    |     ------------------------------------------ the variant `ElementNotInteractable` contains at least 176 bytes
142 |     #[error("The certificate is insecure: {0}")]
143 |     InsecureCertificate(WebDriverErrorInfo),
    |     --------------------------------------- the variant `InsecureCertificate` contains at least 176 bytes
144 |     #[error("An argument passed to the WebDriver server was invalid: {0}")]
145 |     InvalidArgument(WebDriverErrorInfo),
    |     ----------------------------------- the variant `InvalidArgument` contains at least 176 bytes
...
149 |     InvalidCookieDomain(WebDriverErrorInfo),
    |     --------------------------------------- the variant `InvalidCookieDomain` contains at least 176 bytes
150 |     #[error("The element is in an invalid state: {0}")]
151 |     InvalidElementState(WebDriverErrorInfo),
    |     --------------------------------------- the variant `InvalidElementState` contains at least 176 bytes
152 |     #[error("The specified element selector is invalid: {0}")]
153 |     InvalidSelector(WebDriverErrorInfo),
    |     ----------------------------------- the variant `InvalidSelector` contains at least 176 bytes
154 |     #[error("The WebDriver session id is invalid: {0}")]
155 |     InvalidSessionId(WebDriverErrorInfo),
    |     ------------------------------------ the variant `InvalidSessionId` contains at least 176 bytes
156 |     #[error("The Javascript code returned an error: {0}")]
157 |     JavascriptError(WebDriverErrorInfo),
    |     ----------------------------------- the variant `JavascriptError` contains at least 176 bytes
158 |     #[error("Unable to scroll the element into the viewport: {0}")]
159 |     MoveTargetOutOfBounds(WebDriverErrorInfo),
    |     ----------------------------------------- the variant `MoveTargetOutOfBounds` contains at least 176 bytes
160 |     #[error("Alert not found: {0}")]
161 |     NoSuchAlert(WebDriverErrorInfo),
    |     ------------------------------- the variant `NoSuchAlert` contains at least 176 bytes
162 |     #[error("Cookie not found: {0}")]
163 |     NoSuchCookie(WebDriverErrorInfo),
    |     -------------------------------- the variant `NoSuchCookie` contains at least 176 bytes
164 |     #[error("Element not found: {0}")]
165 |     NoSuchElement(WebDriverErrorInfo),
    |     --------------------------------- the variant `NoSuchElement` contains at least 176 bytes
166 |     #[error("Frame not found: {0}")]
167 |     NoSuchFrame(WebDriverErrorInfo),
    |     ------------------------------- the variant `NoSuchFrame` contains at least 176 bytes
168 |     #[error("Window not found: {0}")]
169 |     NoSuchWindow(WebDriverErrorInfo),
    |     -------------------------------- the variant `NoSuchWindow` contains at least 176 bytes
170 |     #[error("The Javascript code did not complete within the script timeout (see WebDriver::set_script_timeout()): {0}")]
171 |     ScriptTimeout(WebDriverErrorInfo),
    |     --------------------------------- the variant `ScriptTimeout` contains at least 176 bytes
172 |     #[error("Unable to create WebDriver session: {0}")]
173 |     SessionNotCreated(WebDriverErrorInfo),
    |     ------------------------------------- the variant `SessionNotCreated` contains at least 176 bytes
174 |     #[error("Element is stale: {0}")]
175 |     StaleElementReference(WebDriverErrorInfo),
    |     ----------------------------------------- the variant `StaleElementReference` contains at least 176 bytes
176 |     #[error("Operation timed out: {0}")]
177 |     WebDriverTimeout(WebDriverErrorInfo),
    |     ------------------------------------ the variant `WebDriverTimeout` contains at least 176 bytes
178 |     #[error("Unable to set cookie: {0}")]
179 |     UnableToSetCookie(WebDriverErrorInfo),
    |     ------------------------------------- the variant `UnableToSetCookie` contains at least 176 bytes
180 |     #[error("Unable to capture screenshot: {0}")]
181 |     UnableToCaptureScreen(WebDriverErrorInfo),
    |     ----------------------------------------- the variant `UnableToCaptureScreen` contains at least 176 bytes
182 |     #[error("An unexpected alert is currently open: {0}")]
183 |     UnexpectedAlertOpen(WebDriverErrorInfo),
    |     --------------------------------------- the variant `UnexpectedAlertOpen` contains at least 176 bytes
184 |     #[error("Unknown command: {0}")]
185 |     UnknownCommand(WebDriverErrorInfo),
    |     ---------------------------------- the variant `UnknownCommand` contains at least 176 bytes
186 |     #[error("Unknown error: {0}")]
187 |     UnknownError(WebDriverErrorInfo),
    |     -------------------------------- the variant `UnknownError` contains at least 176 bytes
188 |     #[error("Unknown method: {0}")]
189 |     UnknownMethod(WebDriverErrorInfo),
    |     --------------------------------- the variant `UnknownMethod` contains at least 176 bytes
190 |     #[error("Unsupport operation: {0}")]
191 |     UnsupportedOperation(WebDriverErrorInfo),
    |     ---------------------------------------- the variant `UnsupportedOperation` contains at least 176 bytes
    |
    = help: try reducing the size of `error::WebDriverError`, for example by boxing large elements or replacing it with `Box<error::WebDriverError>`
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err

Check warning on line 47 in thirtyfour/src/session/scriptret.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

the `Err`-variant returned from this function is very large

warning: the `Err`-variant returned from this function is very large
   --> thirtyfour/src/session/scriptret.rs:47:33
    |
47  |     pub fn convert<T>(&self) -> WebDriverResult<T>
    |                                 ^^^^^^^^^^^^^^^^^^
    |
   ::: thirtyfour/src/error.rs:137:5
    |
137 |     NotInSpec(WebDriverErrorInfo),
    |     ----------------------------- the largest variant contains at least 176 bytes
138 |     #[error("The click event was intercepted by another element: {0}")]
139 |     ElementClickIntercepted(WebDriverErrorInfo),
    |     ------------------------------------------- the variant `ElementClickIntercepted` contains at least 176 bytes
140 |     #[error("The element is not interactable: {0}")]
141 |     ElementNotInteractable(WebDriverErrorInfo),
    |     ------------------------------------------ the variant `ElementNotInteractable` contains at least 176 bytes
142 |     #[error("The certificate is insecure: {0}")]
143 |     InsecureCertificate(WebDriverErrorInfo),
    |     --------------------------------------- the variant `InsecureCertificate` contains at least 176 bytes
144 |     #[error("An argument passed to the WebDriver server was invalid: {0}")]
145 |     InvalidArgument(WebDriverErrorInfo),
    |     ----------------------------------- the variant `InvalidArgument` contains at least 176 bytes
...
149 |     InvalidCookieDomain(WebDriverErrorInfo),
    |     --------------------------------------- the variant `InvalidCookieDomain` contains at least 176 bytes
150 |     #[error("The element is in an invalid state: {0}")]
151 |     InvalidElementState(WebDriverErrorInfo),
    |     --------------------------------------- the variant `InvalidElementState` contains at least 176 bytes
152 |     #[error("The specified element selector is invalid: {0}")]
153 |     InvalidSelector(WebDriverErrorInfo),
    |     ----------------------------------- the variant `InvalidSelector` contains at least 176 bytes
154 |     #[error("The WebDriver session id is invalid: {0}")]
155 |     InvalidSessionId(WebDriverErrorInfo),
    |     ------------------------------------ the variant `InvalidSessionId` contains at least 176 bytes
156 |     #[error("The Javascript code returned an error: {0}")]
157 |     JavascriptError(WebDriverErrorInfo),
    |     ----------------------------------- the variant `JavascriptError` contains at least 176 bytes
158 |     #[error("Unable to scroll the element into the viewport: {0}")]
159 |     MoveTargetOutOfBounds(WebDriverErrorInfo),
    |     ----------------------------------------- the variant `MoveTargetOutOfBounds` contains at least 176 bytes
160 |     #[error("Alert not found: {0}")]
161 |     NoSuchAlert(WebDriverErrorInfo),
    |     ------------------------------- the variant `NoSuchAlert` contains at least 176 bytes
162 |     #[error("Cookie not found: {0}")]
163 |     NoSuchCookie(WebDriverErrorInfo),
    |     -------------------------------- the variant `NoSuchCookie` contains at least 176 bytes
164 |     #[error("Element not found: {0}")]
165 |     NoSuchElement(WebDriverErrorInfo),
    |     --------------------------------- the variant `NoSuchElement` contains at least 176 bytes
166 |     #[error("Frame not found: {0}")]
167 |     NoSuchFrame(WebDriverErrorInfo),
    |     ------------------------------- the variant `NoSuchFrame` contains at least 176 bytes
168 |     #[error("Window not found: {0}")]
169 |     NoSuchWindow(WebDriverErrorInfo),
    |     -------------------------------- the variant `NoSuchWindow` contains at least 176 bytes
170 |     #[error("The Javascript code did not complete within the script timeout (see WebDriver::set_script_timeout()): {0}")]
171 |     ScriptTimeout(WebDriverErrorInfo),
    |     --------------------------------- the variant `ScriptTimeout` contains at least 176 bytes
172 |     #[error("Unable to create WebDriver session: {0}")]
173 |     SessionNotCreated(WebDriverErrorInfo),
    |     ------------------------------------- the variant `SessionNotCreated` contains at least 176 bytes
174 |     #[error("Element is stale: {0}")]
175 |     StaleElementReference(WebDriverErrorInfo),
    |     ----------------------------------------- the variant `StaleElementReference` contains at least 176 bytes
176 |     #[error("Operation timed out: {0}")]
177 |     WebDriverTimeout(WebDriverErrorInfo),
    |     ------------------------------------ the variant `WebDriverTimeout` contains at least 176 bytes
178 |     #[error("Unable to set cookie: {0}")]
179 |     UnableToSetCookie(WebDriverErrorInfo),
    |     ------------------------------------- the variant `UnableToSetCookie` contains at least 176 bytes
180 |     #[error("Unable to capture screenshot: {0}")]
181 |     UnableToCaptureScreen(WebDriverErrorInfo),
    |     ----------------------------------------- the variant `UnableToCaptureScreen` contains at least 176 bytes
182 |     #[error("An unexpected alert is currently open: {0}")]
183 |     UnexpectedAlertOpen(WebDriverErrorInfo),
    |     --------------------------------------- the variant `UnexpectedAlertOpen` contains at least 176 bytes
184 |     #[error("Unknown command: {0}")]
185 |     UnknownCommand(WebDriverErrorInfo),
    |     ---------------------------------- the variant `UnknownCommand` contains at least 176 bytes
186 |     #[error("Unknown error: {0}")]
187 |     UnknownError(WebDriverErrorInfo),
    |     -------------------------------- the variant `UnknownError` contains at least 176 bytes
188 |     #[error("Unknown method: {0}")]
189 |     UnknownMethod(WebDriverErrorInfo),
    |     --------------------------------- the variant `UnknownMethod` contains at least 176 bytes
190 |     #[error("Unsupport operation: {0}")]
191 |     UnsupportedOperation(WebDriverErrorInfo),
    |     ---------------------------------------- the variant `UnsupportedOperation` contains at least 176 bytes
    |
    = help: try reducing the size of `error::WebDriverError`, for example by boxing large elements or replacing it with `Box<error::WebDriverError>`
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err

Check warning on line 200 in thirtyfour/src/session/http.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

the `Err`-variant returned from this function is very large

warning: the `Err`-variant returned from this function is very large
   --> thirtyfour/src/session/http.rs:200:58
    |
200 |     pub fn elements(self, handle: Arc<SessionHandle>) -> WebDriverResult<Vec<WebElement>> {
    |                                                          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    |
   ::: thirtyfour/src/error.rs:137:5
    |
137 |     NotInSpec(WebDriverErrorInfo),
    |     ----------------------------- the largest variant contains at least 176 bytes
138 |     #[error("The click event was intercepted by another element: {0}")]
139 |     ElementClickIntercepted(WebDriverErrorInfo),
    |     ------------------------------------------- the variant `ElementClickIntercepted` contains at least 176 bytes
140 |     #[error("The element is not interactable: {0}")]
141 |     ElementNotInteractable(WebDriverErrorInfo),
    |     ------------------------------------------ the variant `ElementNotInteractable` contains at least 176 bytes
142 |     #[error("The certificate is insecure: {0}")]
143 |     InsecureCertificate(WebDriverErrorInfo),
    |     --------------------------------------- the variant `InsecureCertificate` contains at least 176 bytes
144 |     #[error("An argument passed to the WebDriver server was invalid: {0}")]
145 |     InvalidArgument(WebDriverErrorInfo),
    |     ----------------------------------- the variant `InvalidArgument` contains at least 176 bytes
...
149 |     InvalidCookieDomain(WebDriverErrorInfo),
    |     --------------------------------------- the variant `InvalidCookieDomain` contains at least 176 bytes
150 |     #[error("The element is in an invalid state: {0}")]
151 |     InvalidElementState(WebDriverErrorInfo),
    |     --------------------------------------- the variant `InvalidElementState` contains at least 176 bytes
152 |     #[error("The specified element selector is invalid: {0}")]
153 |     InvalidSelector(WebDriverErrorInfo),
    |     ----------------------------------- the variant `InvalidSelector` contains at least 176 bytes
154 |     #[error("The WebDriver session id is invalid: {0}")]
155 |     InvalidSessionId(WebDriverErrorInfo),
    |     ------------------------------------ the variant `InvalidSessionId` contains at least 176 bytes
156 |     #[error("The Javascript code returned an error: {0}")]
157 |     JavascriptError(WebDriverErrorInfo),
    |     ----------------------------------- the variant `JavascriptError` contains at least 176 bytes
158 |     #[error("Unable to scroll the element into the viewport: {0}")]
159 |     MoveTargetOutOfBounds(WebDriverErrorInfo),
    |     ----------------------------------------- the variant `MoveTargetOutOfBounds` contains at least 176 bytes
160 |     #[error("Alert not found: {0}")]
161 |     NoSuchAlert(WebDriverErrorInfo),
    |     ------------------------------- the variant `NoSuchAlert` contains at least 176 bytes
162 |     #[error("Cookie not found: {0}")]
163 |     NoSuchCookie(WebDriverErrorInfo),
    |     -------------------------------- the variant `NoSuchCookie` contains at least 176 bytes
164 |     #[error("Element not found: {0}")]
165 |     NoSuchElement(WebDriverErrorInfo),
    |     --------------------------------- the variant `NoSuchElement` contains at least 176 bytes
166 |     #[error("Frame not found: {0}")]
167 |     NoSuchFrame(WebDriverErrorInfo),
    |     ------------------------------- the variant `NoSuchFrame` contains at least 176 bytes
168 |     #[error("Window not found: {0}")]
169 |     NoSuchWindow(WebDriverErrorInfo),
    |     -------------------------------- the variant `NoSuchWindow` contains at least 176 bytes
170 |     #[error("The Javascript code did not complete within the script timeout (see WebDriver::set_script_timeout()): {0}")]
171 |     ScriptTimeout(WebDriverErrorInfo),
    |     --------------------------------- the variant `ScriptTimeout` contains at least 176 bytes
172 |     #[error("Unable to create WebDriver session: {0}")]
173 |     SessionNotCreated(WebDriverErrorInfo),
    |     ------------------------------------- the variant `SessionNotCreated` contains at least 176 bytes
174 |     #[error("Element is stale: {0}")]
175 |     StaleElementReference(WebDriverErrorInfo),
    |     ----------------------------------------- the variant `StaleElementReference` contains at least 176 bytes
176 |     #[error("Operation timed out: {0}")]
177 |     WebDriverTimeout(WebDriverErrorInfo),
    |     ------------------------------------ the variant `WebDriverTimeout` contains at least 176 bytes
178 |     #[error("Unable to set cookie: {0}")]
179 |     UnableToSetCookie(WebDriverErrorInfo),
    |     ------------------------------------- the variant `UnableToSetCookie` contains at least 176 bytes
180 |     #[error("Unable to capture screenshot: {0}")]
181 |     UnableToCaptureScreen(WebDriverErrorInfo),
    |     ----------------------------------------- the variant `UnableToCaptureScreen` contains at least 176 bytes
182 |     #[error("An unexpected alert is currently open: {0}")]
183 |     UnexpectedAlertOpen(WebDriverErrorInfo),
    |     --------------------------------------- the variant `UnexpectedAlertOpen` contains at least 176 bytes
184 |     #[error("Unknown command: {0}")]
185 |     UnknownCommand(WebDriverErrorInfo),
    |     ---------------------------------- the variant `UnknownCommand` contains at least 176 bytes
186 |     #[error("Unknown error: {0}")]
187 |     UnknownError(WebDriverErrorInfo),
    |     -------------------------------- the variant `UnknownError` contains at least 176 bytes
188 |     #[error("Unknown method: {0}")]
189 |     UnknownMethod(WebDriverErrorInfo),
    |     --------------------------------- the variant `UnknownMethod` contains at least 176 bytes
190 |     #[error("Unsupport operation: {0}")]
191 |     UnsupportedOperation(WebDriverErrorInfo),
    |     ---------------------------------------- the variant `UnsupportedOperation` contains at least 176 bytes
    |
    = help: try reducing the size of `error::WebDriverError`, for example by boxing large elements or replacing it with `Box<error::WebDriverError>`
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err

Check warning on line 194 in thirtyfour/src/session/http.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

the `Err`-variant returned from this function is very large

warning: the `Err`-variant returned from this function is very large
   --> thirtyfour/src/session/http.rs:194:57
    |
194 |     pub fn element(self, handle: Arc<SessionHandle>) -> WebDriverResult<WebElement> {
    |                                                         ^^^^^^^^^^^^^^^^^^^^^^^^^^^
    |
   ::: thirtyfour/src/error.rs:137:5
    |
137 |     NotInSpec(WebDriverErrorInfo),
    |     ----------------------------- the largest variant contains at least 176 bytes
138 |     #[error("The click event was intercepted by another element: {0}")]
139 |     ElementClickIntercepted(WebDriverErrorInfo),
    |     ------------------------------------------- the variant `ElementClickIntercepted` contains at least 176 bytes
140 |     #[error("The element is not interactable: {0}")]
141 |     ElementNotInteractable(WebDriverErrorInfo),
    |     ------------------------------------------ the variant `ElementNotInteractable` contains at least 176 bytes
142 |     #[error("The certificate is insecure: {0}")]
143 |     InsecureCertificate(WebDriverErrorInfo),
    |     --------------------------------------- the variant `InsecureCertificate` contains at least 176 bytes
144 |     #[error("An argument passed to the WebDriver server was invalid: {0}")]
145 |     InvalidArgument(WebDriverErrorInfo),
    |     ----------------------------------- the variant `InvalidArgument` contains at least 176 bytes
...
149 |     InvalidCookieDomain(WebDriverErrorInfo),
    |     --------------------------------------- the variant `InvalidCookieDomain` contains at least 176 bytes
150 |     #[error("The element is in an invalid state: {0}")]
151 |     InvalidElementState(WebDriverErrorInfo),
    |     --------------------------------------- the variant `InvalidElementState` contains at least 176 bytes
152 |     #[error("The specified element selector is invalid: {0}")]
153 |     InvalidSelector(WebDriverErrorInfo),
    |     ----------------------------------- the variant `InvalidSelector` contains at least 176 bytes
154 |     #[error("The WebDriver session id is invalid: {0}")]
155 |     InvalidSessionId(WebDriverErrorInfo),
    |     ------------------------------------ the variant `InvalidSessionId` contains at least 176 bytes
156 |     #[error("The Javascript code returned an error: {0}")]
157 |     JavascriptError(WebDriverErrorInfo),
    |     ----------------------------------- the variant `JavascriptError` contains at least 176 bytes
158 |     #[error("Unable to scroll the element into the viewport: {0}")]
159 |     MoveTargetOutOfBounds(WebDriverErrorInfo),
    |     ----------------------------------------- the variant `MoveTargetOutOfBounds` contains at least 176 bytes
160 |     #[error("Alert not found: {0}")]
161 |     NoSuchAlert(WebDriverErrorInfo),
    |     ------------------------------- the variant `NoSuchAlert` contains at least 176 bytes
162 |     #[error("Cookie not found: {0}")]
163 |     NoSuchCookie(WebDriverErrorInfo),
    |     -------------------------------- the variant `NoSuchCookie` contains at least 176 bytes
164 |     #[error("Element not found: {0}")]
165 |     NoSuchElement(WebDriverErrorInfo),
    |     --------------------------------- the variant `NoSuchElement` contains at least 176 bytes
166 |     #[error("Frame not found: {0}")]
167 |     NoSuchFrame(WebDriverErrorInfo),
    |     ------------------------------- the variant `NoSuchFrame` contains at least 176 bytes
168 |     #[error("Window not found: {0}")]
169 |     NoSuchWindow(WebDriverErrorInfo),
    |     -------------------------------- the variant `NoSuchWindow` contains at least 176 bytes
170 |     #[error("The Javascript code did not complete within the script timeout (see WebDriver::set_script_timeout()): {0}")]
171 |     ScriptTimeout(WebDriverErrorInfo),
    |     --------------------------------- the variant `ScriptTimeout` contains at least 176 bytes
172 |     #[error("Unable to create WebDriver session: {0}")]
173 |     SessionNotCreated(WebDriverErrorInfo),
    |     ------------------------------------- the variant `SessionNotCreated` contains at least 176 bytes
174 |     #[error("Element is stale: {0}")]
175 |     StaleElementReference(WebDriverErrorInfo),
    |     ----------------------------------------- the variant `StaleElementReference` contains at least 176 bytes
176 |     #[error("Operation timed out: {0}")]
177 |     WebDriverTimeout(WebDriverErrorInfo),
    |     ------------------------------------ the variant `WebDriverTimeout` contains at least 176 bytes
178 |     #[error("Unable to set cookie: {0}")]
179 |     UnableToSetCookie(WebDriverErrorInfo),
    |     ------------------------------------- the variant `UnableToSetCookie` contains at least 176 bytes
180 |     #[error("Unable to capture screenshot: {0}")]
181 |     UnableToCaptureScreen(WebDriverErrorInfo),
    |     ----------------------------------------- the variant `UnableToCaptureScreen` contains at least 176 bytes
182 |     #[error("An unexpected alert is currently open: {0}")]
183 |     UnexpectedAlertOpen(WebDriverErrorInfo),
    |     --------------------------------------- the variant `UnexpectedAlertOpen` contains at least 176 bytes
184 |     #[error("Unknown command: {0}")]
185 |     UnknownCommand(WebDriverErrorInfo),
    |     ---------------------------------- the variant `UnknownCommand` contains at least 176 bytes
186 |     #[error("Unknown error: {0}")]
187 |     UnknownError(WebDriverErrorInfo),
    |     -------------------------------- the variant `UnknownError` contains at least 176 bytes
188 |     #[error("Unknown method: {0}")]
189 |     UnknownMethod(WebDriverErrorInfo),
    |     --------------------------------- the variant `UnknownMethod` contains at least 176 bytes
190 |     #[error("Unsupport operation: {0}")]
191 |     UnsupportedOperation(WebDriverErrorInfo),
    |     ---------------------------------------- the variant `UnsupportedOperation` contains at least 176 bytes
    |
    = help: try reducing the size of `error::WebDriverError`, for example by boxing large elements or replacing it with `Box<error::WebDriverError>`
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err

Check warning on line 188 in thirtyfour/src/session/http.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

the `Err`-variant returned from this function is very large

warning: the `Err`-variant returned from this function is very large
   --> thirtyfour/src/session/http.rs:188:59
    |
188 |     pub fn value<T: serde::de::DeserializeOwned>(self) -> WebDriverResult<T> {
    |                                                           ^^^^^^^^^^^^^^^^^^
    |
   ::: thirtyfour/src/error.rs:137:5
    |
137 |     NotInSpec(WebDriverErrorInfo),
    |     ----------------------------- the largest variant contains at least 176 bytes
138 |     #[error("The click event was intercepted by another element: {0}")]
139 |     ElementClickIntercepted(WebDriverErrorInfo),
    |     ------------------------------------------- the variant `ElementClickIntercepted` contains at least 176 bytes
140 |     #[error("The element is not interactable: {0}")]
141 |     ElementNotInteractable(WebDriverErrorInfo),
    |     ------------------------------------------ the variant `ElementNotInteractable` contains at least 176 bytes
142 |     #[error("The certificate is insecure: {0}")]
143 |     InsecureCertificate(WebDriverErrorInfo),
    |     --------------------------------------- the variant `InsecureCertificate` contains at least 176 bytes
144 |     #[error("An argument passed to the WebDriver server was invalid: {0}")]
145 |     InvalidArgument(WebDriverErrorInfo),
    |     ----------------------------------- the variant `InvalidArgument` contains at least 176 bytes
...
149 |     InvalidCookieDomain(WebDriverErrorInfo),
    |     --------------------------------------- the variant `InvalidCookieDomain` contains at least 176 bytes
150 |     #[error("The element is in an invalid state: {0}")]
151 |     InvalidElementState(WebDriverErrorInfo),
    |     --------------------------------------- the variant `InvalidElementState` contains at least 176 bytes
152 |     #[error("The specified element selector is invalid: {0}")]
153 |     InvalidSelector(WebDriverErrorInfo),
    |     ----------------------------------- the variant `InvalidSelector` contains at least 176 bytes
154 |     #[error("The WebDriver session id is invalid: {0}")]
155 |     InvalidSessionId(WebDriverErrorInfo),
    |     ------------------------------------ the variant `InvalidSessionId` contains at least 176 bytes
156 |     #[error("The Javascript code returned an error: {0}")]
157 |     JavascriptError(WebDriverErrorInfo),
    |     ----------------------------------- the variant `JavascriptError` contains at least 176 bytes
158 |     #[error("Unable to scroll the element into the viewport: {0}")]
159 |     MoveTargetOutOfBounds(WebDriverErrorInfo),
    |     ----------------------------------------- the variant `MoveTargetOutOfBounds` contains at least 176 bytes
160 |     #[error("Alert not found: {0}")]
161 |     NoSuchAlert(WebDriverErrorInfo),
    |     ------------------------------- the variant `NoSuchAlert` contains at least 176 bytes
162 |     #[error("Cookie not found: {0}")]
163 |     NoSuchCookie(WebDriverErrorInfo),
    |     -------------------------------- the variant `NoSuchCookie` contains at least 176 bytes
164 |     #[error("Element not found: {0}")]
165 |     NoSuchElement(WebDriverErrorInfo),
    |     --------------------------------- the variant `NoSuchElement` contains at least 176 bytes
166 |     #[error("Frame not found: {0}")]
167 |     NoSuchFrame(WebDriverErrorInfo),
    |     ------------------------------- the variant `NoSuchFrame` contains at least 176 bytes
168 |     #[error("Window not found: {0}")]
169 |     NoSuchWindow(WebDriverErrorInfo),
    |     -------------------------------- the variant `NoSuchWindow` contains at least 176 bytes
170 |     #[error("The Javascript code did not complete within the script timeout (see WebDriver::set_script_timeout()): {0}")]
171 |     ScriptTimeout(WebDriverErrorInfo),
    |     --------------------------------- the variant `ScriptTimeout` contains at least 176 bytes
172 |     #[error("Unable to create WebDriver session: {0}")]
173 |     SessionNotCreated(WebDriverErrorInfo),
    |     ------------------------------------- the variant `SessionNotCreated` contains at least 176 bytes
174 |     #[error("Element is stale: {0}")]
175 |     StaleElementReference(WebDriverErrorInfo),
    |     ----------------------------------------- the variant `StaleElementReference` contains at least 176 bytes
176 |     #[error("Operation timed out: {0}")]
177 |     WebDriverTimeout(WebDriverErrorInfo),
    |     ------------------------------------ the variant `WebDriverTimeout` contains at least 176 bytes
178 |     #[error("Unable to set cookie: {0}")]
179 |     UnableToSetCookie(WebDriverErrorInfo),
    |     ------------------------------------- the variant `UnableToSetCookie` contains at least 176 bytes
180 |     #[error("Unable to capture screenshot: {0}")]
181 |     UnableToCaptureScreen(WebDriverErrorInfo),
    |     ----------------------------------------- the variant `UnableToCaptureScreen` contains at least 176 bytes
182 |     #[error("An unexpected alert is currently open: {0}")]
183 |     UnexpectedAlertOpen(WebDriverErrorInfo),
    |     --------------------------------------- the variant `UnexpectedAlertOpen` contains at least 176 bytes
184 |     #[error("Unknown command: {0}")]
185 |     UnknownCommand(WebDriverErrorInfo),
    |     ---------------------------------- the variant `UnknownCommand` contains at least 176 bytes
186 |     #[error("Unknown error: {0}")]
187 |     UnknownError(WebDriverErrorInfo),
    |     -------------------------------- the variant `UnknownError` contains at least 176 bytes
188 |     #[error("Unknown method: {0}")]
189 |     UnknownMethod(WebDriverErrorInfo),
    |     --------------------------------- the variant `UnknownMethod` contains at least 176 bytes
190 |     #[error("Unsupport operation: {0}")]
191 |     UnsupportedOperation(WebDriverErrorInfo),
    |     ---------------------------------------- the variant `UnsupportedOperation` contains at least 176 bytes
    |
    = help: try reducing the size of `error::WebDriverError`, for example by boxing large elements or replacing it with `Box<error::WebDriverError>`
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err

Check warning on line 178 in thirtyfour/src/session/http.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

the `Err`-variant returned from this function is very large

warning: the `Err`-variant returned from this function is very large
   --> thirtyfour/src/session/http.rs:178:32
    |
178 |     pub fn value_json(self) -> WebDriverResult<Value> {
    |                                ^^^^^^^^^^^^^^^^^^^^^^
    |
   ::: thirtyfour/src/error.rs:137:5
    |
137 |     NotInSpec(WebDriverErrorInfo),
    |     ----------------------------- the largest variant contains at least 176 bytes
138 |     #[error("The click event was intercepted by another element: {0}")]
139 |     ElementClickIntercepted(WebDriverErrorInfo),
    |     ------------------------------------------- the variant `ElementClickIntercepted` contains at least 176 bytes
140 |     #[error("The element is not interactable: {0}")]
141 |     ElementNotInteractable(WebDriverErrorInfo),
    |     ------------------------------------------ the variant `ElementNotInteractable` contains at least 176 bytes
142 |     #[error("The certificate is insecure: {0}")]
143 |     InsecureCertificate(WebDriverErrorInfo),
    |     --------------------------------------- the variant `InsecureCertificate` contains at least 176 bytes
144 |     #[error("An argument passed to the WebDriver server was invalid: {0}")]
145 |     InvalidArgument(WebDriverErrorInfo),
    |     ----------------------------------- the variant `InvalidArgument` contains at least 176 bytes
...
149 |     InvalidCookieDomain(WebDriverErrorInfo),
    |     --------------------------------------- the variant `InvalidCookieDomain` contains at least 176 bytes
150 |     #[error("The element is in an invalid state: {0}")]
151 |     InvalidElementState(WebDriverErrorInfo),
    |     --------------------------------------- the variant `InvalidElementState` contains at least 176 bytes
152 |     #[error("The specified element selector is invalid: {0}")]
153 |     InvalidSelector(WebDriverErrorInfo),
    |     ----------------------------------- the variant `InvalidSelector` contains at least 176 bytes
154 |     #[error("The WebDriver session id is invalid: {0}")]
155 |     InvalidSessionId(WebDriverErrorInfo),
    |     ------------------------------------ the variant `InvalidSessionId` contains at least 176 bytes
156 |     #[error("The Javascript code returned an error: {0}")]
157 |     JavascriptError(WebDriverErrorInfo),
    |     ----------------------------------- the variant `JavascriptError` contains at least 176 bytes
158 |     #[error("Unable to scroll the element into the viewport: {0}")]
159 |     MoveTargetOutOfBounds(WebDriverErrorInfo),
    |     ----------------------------------------- the variant `MoveTargetOutOfBounds` contains at least 176 bytes
160 |     #[error("Alert not found: {0}")]
161 |     NoSuchAlert(WebDriverErrorInfo),
    |     ------------------------------- the variant `NoSuchAlert` contains at least 176 bytes
162 |     #[error("Cookie not found: {0}")]
163 |     NoSuchCookie(WebDriverErrorInfo),
    |     -------------------------------- the variant `NoSuchCookie` contains at least 176 bytes
164 |     #[error("Element not found: {0}")]
165 |     NoSuchElement(WebDriverErrorInfo),
    |     --------------------------------- the variant `NoSuchElement` contains at least 176 bytes
166 |     #[error("Frame not found: {0}")]
167 |     NoSuchFrame(WebDriverErrorInfo),
    |     ------------------------------- the variant `NoSuchFrame` contains at least 176 bytes
168 |     #[error("Window not found: {0}")]
169 |     NoSuchWindow(WebDriverErrorInfo),
    |     -------------------------------- the variant `NoSuchWindow` contains at least 176 bytes
170 |     #[error("The Javascript code did not complete within the script timeout (see WebDriver::set_script_timeout()): {0}")]
171 |     ScriptTimeout(WebDriverErrorInfo),
    |     --------------------------------- the variant `ScriptTimeout` contains at least 176 bytes
172 |     #[error("Unable to create WebDriver session: {0}")]
173 |     SessionNotCreated(WebDriverErrorInfo),
    |     ------------------------------------- the variant `SessionNotCreated` contains at least 176 bytes
174 |     #[error("Element is stale: {0}")]
175 |     StaleElementReference(WebDriverErrorInfo),
    |     ----------------------------------------- the variant `StaleElementReference` contains at least 176 bytes
176 |     #[error("Operation timed out: {0}")]
177 |     WebDriverTimeout(WebDriverErrorInfo),
    |     ------------------------------------ the variant `WebDriverTimeout` contains at least 176 bytes
178 |     #[error("Unable to set cookie: {0}")]
179 |     UnableToSetCookie(WebDriverErrorInfo),
    |     ------------------------------------- the variant `UnableToSetCookie` contains at least 176 bytes
180 |     #[error("Unable to capture screenshot: {0}")]
181 |     UnableToCaptureScreen(WebDriverErrorInfo),
    |     ----------------------------------------- the variant `UnableToCaptureScreen` contains at least 176 bytes
182 |     #[error("An unexpected alert is currently open: {0}")]
183 |     UnexpectedAlertOpen(WebDriverErrorInfo),
    |     --------------------------------------- the variant `UnexpectedAlertOpen` contains at least 176 bytes
184 |     #[error("Unknown command: {0}")]
185 |     UnknownCommand(WebDriverErrorInfo),
    |     ---------------------------------- the variant `UnknownCommand` contains at least 176 bytes
186 |     #[error("Unknown error: {0}")]
187 |     UnknownError(WebDriverErrorInfo),
    |     -------------------------------- the variant `UnknownError` contains at least 176 bytes
188 |     #[error("Unknown method: {0}")]
189 |     UnknownMethod(WebDriverErrorInfo),
    |     --------------------------------- the variant `UnknownMethod` contains at least 176 bytes
190 |     #[error("Unsupport operation: {0}")]
191 |     UnsupportedOperation(WebDriverErrorInfo),
    |     ---------------------------------------- the variant `UnsupportedOperation` contains at least 176 bytes
    |
    = help: try reducing the size of `error::WebDriverError`, for example by boxing large elements or replacing it with `Box<error::WebDriverError>`
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err

Check warning on line 67 in thirtyfour/src/session/handle.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

the `Err`-variant returned from this function is very large

warning: the `Err`-variant returned from this function is very large
   --> thirtyfour/src/session/handle.rs:67:10
    |
67  |     ) -> WebDriverResult<Self> {
    |          ^^^^^^^^^^^^^^^^^^^^^
    |
   ::: thirtyfour/src/error.rs:137:5
    |
137 |     NotInSpec(WebDriverErrorInfo),
    |     ----------------------------- the largest variant contains at least 176 bytes
138 |     #[error("The click event was intercepted by another element: {0}")]
139 |     ElementClickIntercepted(WebDriverErrorInfo),
    |     ------------------------------------------- the variant `ElementClickIntercepted` contains at least 176 bytes
140 |     #[error("The element is not interactable: {0}")]
141 |     ElementNotInteractable(WebDriverErrorInfo),
    |     ------------------------------------------ the variant `ElementNotInteractable` contains at least 176 bytes
142 |     #[error("The certificate is insecure: {0}")]
143 |     InsecureCertificate(WebDriverErrorInfo),
    |     --------------------------------------- the variant `InsecureCertificate` contains at least 176 bytes
144 |     #[error("An argument passed to the WebDriver server was invalid: {0}")]
145 |     InvalidArgument(WebDriverErrorInfo),
    |     ----------------------------------- the variant `InvalidArgument` contains at least 176 bytes
...
149 |     InvalidCookieDomain(WebDriverErrorInfo),
    |     --------------------------------------- the variant `InvalidCookieDomain` contains at least 176 bytes
150 |     #[error("The element is in an invalid state: {0}")]
151 |     InvalidElementState(WebDriverErrorInfo),
    |     --------------------------------------- the variant `InvalidElementState` contains at least 176 bytes
152 |     #[error("The specified element selector is invalid: {0}")]
153 |     InvalidSelector(WebDriverErrorInfo),
    |     ----------------------------------- the variant `InvalidSelector` contains at least 176 bytes
154 |     #[error("The WebDriver session id is invalid: {0}")]
155 |     InvalidSessionId(WebDriverErrorInfo),
    |     ------------------------------------ the variant `InvalidSessionId` contains at least 176 bytes
156 |     #[error("The Javascript code returned an error: {0}")]
157 |     JavascriptError(WebDriverErrorInfo),
    |     ----------------------------------- the variant `JavascriptError` contains at least 176 bytes
158 |     #[error("Unable to scroll the element into the viewport: {0}")]
159 |     MoveTargetOutOfBounds(WebDriverErrorInfo),
    |     ----------------------------------------- the variant `MoveTargetOutOfBounds` contains at least 176 bytes
160 |     #[error("Alert not found: {0}")]
161 |     NoSuchAlert(WebDriverErrorInfo),
    |     ------------------------------- the variant `NoSuchAlert` contains at least 176 bytes
162 |     #[error("Cookie not found: {0}")]
163 |     NoSuchCookie(WebDriverErrorInfo),
    |     -------------------------------- the variant `NoSuchCookie` contains at least 176 bytes
164 |     #[error("Element not found: {0}")]
165 |     NoSuchElement(WebDriverErrorInfo),
    |     --------------------------------- the variant `NoSuchElement` contains at least 176 bytes
166 |     #[error("Frame not found: {0}")]
167 |     NoSuchFrame(WebDriverErrorInfo),
    |     ------------------------------- the variant `NoSuchFrame` contains at least 176 bytes
168 |     #[error("Window not found: {0}")]
169 |     NoSuchWindow(WebDriverErrorInfo),
    |     -------------------------------- the variant `NoSuchWindow` contains at least 176 bytes
170 |     #[error("The Javascript code did not complete within the script timeout (see WebDriver::set_script_timeout()): {0}")]
171 |     ScriptTimeout(WebDriverErrorInfo),
    |     --------------------------------- the variant `ScriptTimeout` contains at least 176 bytes
172 |     #[error("Unable to create WebDriver session: {0}")]
173 |     SessionNotCreated(WebDriverErrorInfo),
    |     ------------------------------------- the variant `SessionNotCreated` contains at least 176 bytes
174 |     #[error("Element is stale: {0}")]
175 |     StaleElementReference(WebDriverErrorInfo),
    |     ----------------------------------------- the variant `StaleElementReference` contains at least 176 bytes
176 |     #[error("Operation timed out: {0}")]
177 |     WebDriverTimeout(WebDriverErrorInfo),
    |     ------------------------------------ the variant `WebDriverTimeout` contains at least 176 bytes
178 |     #[error("Unable to set cookie: {0}")]
179 |     UnableToSetCookie(WebDriverErrorInfo),
    |     ------------------------------------- the variant `UnableToSetCookie` contains at least 176 bytes
180 |     #[error("Unable to capture screenshot: {0}")]
181 |     UnableToCaptureScreen(WebDriverErrorInfo),
    |     ----------------------------------------- the variant `UnableToCaptureScreen` contains at least 176 bytes
182 |     #[error("An unexpected alert is currently open: {0}")]
183 |     UnexpectedAlertOpen(WebDriverErrorInfo),
    |     --------------------------------------- the variant `UnexpectedAlertOpen` contains at least 176 bytes
184 |     #[error("Unknown command: {0}")]
185 |     UnknownCommand(WebDriverErrorInfo),
    |     ---------------------------------- the variant `UnknownCommand` contains at least 176 bytes
186 |     #[error("Unknown error: {0}")]
187 |     UnknownError(WebDriverErrorInfo),
    |     -------------------------------- the variant `UnknownError` contains at least 176 bytes
188 |     #[error("Unknown method: {0}")]
189 |     UnknownMethod(WebDriverErrorInfo),
    |     --------------------------------- the variant `UnknownMethod` contains at least 176 bytes
190 |     #[error("Unsupport operation: {0}")]
191 |     UnsupportedOperation(WebDriverErrorInfo),
    |     ---------------------------------------- the variant `UnsupportedOperation` contains at least 176 bytes
    |
    = help: try reducing the size of `error::WebDriverError`, for example by boxing large elements or replacing it with `Box<error::WebDriverError>`
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err

Check warning on line 57 in thirtyfour/src/session/handle.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

the `Err`-variant returned from this function is very large

warning: the `Err`-variant returned from this function is very large
   --> thirtyfour/src/session/handle.rs:57:10
    |
57  |     ) -> WebDriverResult<Self> {
    |          ^^^^^^^^^^^^^^^^^^^^^
    |
   ::: thirtyfour/src/error.rs:137:5
    |
137 |     NotInSpec(WebDriverErrorInfo),
    |     ----------------------------- the largest variant contains at least 176 bytes
138 |     #[error("The click event was intercepted by another element: {0}")]
139 |     ElementClickIntercepted(WebDriverErrorInfo),
    |     ------------------------------------------- the variant `ElementClickIntercepted` contains at least 176 bytes
140 |     #[error("The element is not interactable: {0}")]
141 |     ElementNotInteractable(WebDriverErrorInfo),
    |     ------------------------------------------ the variant `ElementNotInteractable` contains at least 176 bytes
142 |     #[error("The certificate is insecure: {0}")]
143 |     InsecureCertificate(WebDriverErrorInfo),
    |     --------------------------------------- the variant `InsecureCertificate` contains at least 176 bytes
144 |     #[error("An argument passed to the WebDriver server was invalid: {0}")]
145 |     InvalidArgument(WebDriverErrorInfo),
    |     ----------------------------------- the variant `InvalidArgument` contains at least 176 bytes
...
149 |     InvalidCookieDomain(WebDriverErrorInfo),
    |     --------------------------------------- the variant `InvalidCookieDomain` contains at least 176 bytes
150 |     #[error("The element is in an invalid state: {0}")]
151 |     InvalidElementState(WebDriverErrorInfo),
    |     --------------------------------------- the variant `InvalidElementState` contains at least 176 bytes
152 |     #[error("The specified element selector is invalid: {0}")]
153 |     InvalidSelector(WebDriverErrorInfo),
    |     ----------------------------------- the variant `InvalidSelector` contains at least 176 bytes
154 |     #[error("The WebDriver session id is invalid: {0}")]
155 |     InvalidSessionId(WebDriverErrorInfo),
    |     ------------------------------------ the variant `InvalidSessionId` contains at least 176 bytes
156 |     #[error("The Javascript code returned an error: {0}")]
157 |     JavascriptError(WebDriverErrorInfo),
    |     ----------------------------------- the variant `JavascriptError` contains at least 176 bytes
158 |     #[error("Unable to scroll the element into the viewport: {0}")]
159 |     MoveTargetOutOfBounds(WebDriverErrorInfo),
    |     ----------------------------------------- the variant `MoveTargetOutOfBounds` contains at least 176 bytes
160 |     #[error("Alert not found: {0}")]
161 |     NoSuchAlert(WebDriverErrorInfo),
    |     ------------------------------- the variant `NoSuchAlert` contains at least 176 bytes
162 |     #[error("Cookie not found: {0}")]
163 |     NoSuchCookie(WebDriverErrorInfo),
    |     -------------------------------- the variant `NoSuchCookie` contains at least 176 bytes
164 |     #[error("Element not found: {0}")]
165 |     NoSuchElement(WebDriverErrorInfo),
    |     --------------------------------- the variant `NoSuchElement` contains at least 176 bytes
166 |     #[error("Frame not found: {0}")]
167 |     NoSuchFrame(WebDriverErrorInfo),
    |     ------------------------------- the variant `NoSuchFrame` contains at least 176 bytes
168 |     #[error("Window not found: {0}")]
169 |     NoSuchWindow(WebDriverErrorInfo),
    |     -------------------------------- the variant `NoSuchWindow` contains at least 176 bytes
170 |     #[error("The Javascript code did not complete within the script timeout (see WebDriver::set_script_timeout()): {0}")]
171 |     ScriptTimeout(WebDriverErrorInfo),
    |     --------------------------------- the variant `ScriptTimeout` contains at least 176 bytes
172 |     #[error("Unable to create WebDriver session: {0}")]
173 |     SessionNotCreated(WebDriverErrorInfo),
    |     ------------------------------------- the variant `SessionNotCreated` contains at least 176 bytes
174 |     #[error("Element is stale: {0}")]
175 |     StaleElementReference(WebDriverErrorInfo),
    |     ----------------------------------------- the variant `StaleElementReference` contains at least 176 bytes
176 |     #[error("Operation timed out: {0}")]
177 |     WebDriverTimeout(WebDriverErrorInfo),
    |     ------------------------------------ the variant `WebDriverTimeout` contains at least 176 bytes
178 |     #[error("Unable to set cookie: {0}")]
179 |     UnableToSetCookie(WebDriverErrorInfo),
    |     ------------------------------------- the variant `UnableToSetCookie` contains at least 176 bytes
180 |     #[error("Unable to capture screenshot: {0}")]
181 |     UnableToCaptureScreen(WebDriverErrorInfo),
    |     ----------------------------------------- the variant `UnableToCaptureScreen` contains at least 176 bytes
182 |     #[error("An unexpected alert is currently open: {0}")]
183 |     UnexpectedAlertOpen(WebDriverErrorInfo),
    |     --------------------------------------- the variant `UnexpectedAlertOpen` contains at least 176 bytes
184 |     #[error("Unknown command: {0}")]
185 |     UnknownCommand(WebDriverErrorInfo),
    |     ---------------------------------- the variant `UnknownCommand` contains at least 176 bytes
186 |     #[error("Unknown error: {0}")]
187 |     UnknownError(WebDriverErrorInfo),
    |     -------------------------------- the variant `UnknownError` contains at least 176 bytes
188 |     #[error("Unknown method: {0}")]
189 |     UnknownMethod(WebDriverErrorInfo),
    |     --------------------------------- the variant `UnknownMethod` contains at least 176 bytes
190 |     #[error("Unsupport operation: {0}")]
191 |     UnsupportedOperation(WebDriverErrorInfo),
    |     ---------------------------------------- the variant `UnsupportedOperation` contains at least 176 bytes
    |
    = help: try reducing the size of `error::WebDriverError`, for example by boxing large elements or replacing it with `Box<error::WebDriverError>`
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err

Check warning on line 106 in thirtyfour/src/extensions/query/element_waiter.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

the `Err`-variant returned from this function is very large

warning: the `Err`-variant returned from this function is very large
   --> thirtyfour/src/extensions/query/element_waiter.rs:106:25
    |
106 |     fn timeout(self) -> WebDriverResult<()> {
    |                         ^^^^^^^^^^^^^^^^^^^
    |
   ::: thirtyfour/src/error.rs:137:5
    |
137 |     NotInSpec(WebDriverErrorInfo),
    |     ----------------------------- the largest variant contains at least 176 bytes
138 |     #[error("The click event was intercepted by another element: {0}")]
139 |     ElementClickIntercepted(WebDriverErrorInfo),
    |     ------------------------------------------- the variant `ElementClickIntercepted` contains at least 176 bytes
140 |     #[error("The element is not interactable: {0}")]
141 |     ElementNotInteractable(WebDriverErrorInfo),
    |     ------------------------------------------ the variant `ElementNotInteractable` contains at least 176 bytes
142 |     #[error("The certificate is insecure: {0}")]
143 |     InsecureCertificate(WebDriverErrorInfo),
    |     --------------------------------------- the variant `InsecureCertificate` contains at least 176 bytes
144 |     #[error("An argument passed to the WebDriver server was invalid: {0}")]
145 |     InvalidArgument(WebDriverErrorInfo),
    |     ----------------------------------- the variant `InvalidArgument` contains at least 176 bytes
...
149 |     InvalidCookieDomain(WebDriverErrorInfo),
    |     --------------------------------------- the variant `InvalidCookieDomain` contains at least 176 bytes
150 |     #[error("The element is in an invalid state: {0}")]
151 |     InvalidElementState(WebDriverErrorInfo),
    |     --------------------------------------- the variant `InvalidElementState` contains at least 176 bytes
152 |     #[error("The specified element selector is invalid: {0}")]
153 |     InvalidSelector(WebDriverErrorInfo),
    |     ----------------------------------- the variant `InvalidSelector` contains at least 176 bytes
154 |     #[error("The WebDriver session id is invalid: {0}")]
155 |     InvalidSessionId(WebDriverErrorInfo),
    |     ------------------------------------ the variant `InvalidSessionId` contains at least 176 bytes
156 |     #[error("The Javascript code returned an error: {0}")]
157 |     JavascriptError(WebDriverErrorInfo),
    |     ----------------------------------- the variant `JavascriptError` contains at least 176 bytes
158 |     #[error("Unable to scroll the element into the viewport: {0}")]
159 |     MoveTargetOutOfBounds(WebDriverErrorInfo),
    |     ----------------------------------------- the variant `MoveTargetOutOfBounds` contains at least 176 bytes
160 |     #[error("Alert not found: {0}")]
161 |     NoSuchAlert(WebDriverErrorInfo),
    |     ------------------------------- the variant `NoSuchAlert` contains at least 176 bytes
162 |     #[error("Cookie not found: {0}")]
163 |     NoSuchCookie(WebDriverErrorInfo),
    |     -------------------------------- the variant `NoSuchCookie` contains at least 176 bytes
164 |     #[error("Element not found: {0}")]
165 |     NoSuchElement(WebDriverErrorInfo),
    |     --------------------------------- the variant `NoSuchElement` contains at least 176 bytes
166 |     #[error("Frame not found: {0}")]
167 |     NoSuchFrame(WebDriverErrorInfo),
    |     ------------------------------- the variant `NoSuchFrame` contains at least 176 bytes
168 |     #[error("Window not found: {0}")]
169 |     NoSuchWindow(WebDriverErrorInfo),
    |     -------------------------------- the variant `NoSuchWindow` contains at least 176 bytes
170 |     #[error("The Javascript code did not complete within the script timeout (see WebDriver::set_script_timeout()): {0}")]
171 |     ScriptTimeout(WebDriverErrorInfo),
    |     --------------------------------- the variant `ScriptTimeout` contains at least 176 bytes
172 |     #[error("Unable to create WebDriver session: {0}")]
173 |     SessionNotCreated(WebDriverErrorInfo),
    |     ------------------------------------- the variant `SessionNotCreated` contains at least 176 bytes
174 |     #[error("Element is stale: {0}")]
175 |     StaleElementReference(WebDriverErrorInfo),
    |     ----------------------------------------- the variant `StaleElementReference` contains at least 176 bytes
176 |     #[error("Operation timed out: {0}")]
177 |     WebDriverTimeout(WebDriverErrorInfo),
    |     ------------------------------------ the variant `WebDriverTimeout` contains at least 176 bytes
178 |     #[error("Unable to set cookie: {0}")]
179 |     UnableToSetCookie(WebDriverErrorInfo),
    |     ------------------------------------- the variant `UnableToSetCookie` contains at least 176 bytes
180 |     #[error("Unable to capture screenshot: {0}")]
181 |     UnableToCaptureScreen(WebDriverErrorInfo),
    |     ----------------------------------------- the variant `UnableToCaptureScreen` contains at least 176 bytes
182 |     #[error("An unexpected alert is currently open: {0}")]
183 |     UnexpectedAlertOpen(WebDriverErrorInfo),
    |     --------------------------------------- the variant `UnexpectedAlertOpen` contains at least 176 bytes
184 |     #[error("Unknown command: {0}")]
185 |     UnknownCommand(WebDriverErrorInfo),
    |     ---------------------------------- the variant `UnknownCommand` contains at least 176 bytes
186 |     #[error("Unknown error: {0}")]
187 |     UnknownError(WebDriverErrorInfo),
    |     -------------------------------- the variant `UnknownError` contains at least 176 bytes
188 |     #[error("Unknown method: {0}")]
189 |     UnknownMethod(WebDriverErrorInfo),
    |     --------------------------------- the variant `UnknownMethod` contains at least 176 bytes
190 |     #[error("Unsupport operation: {0}")]
191 |     UnsupportedOperation(WebDriverErrorInfo),
    |     ---------------------------------------- the variant `UnsupportedOperation` contains at least 176 bytes
    |
    = help: try reducing the size of `error::WebDriverError`, for example by boxing large elements or replacing it with `Box<error::WebDriverError>`
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err

Check warning on line 18 in thirtyfour/src/extensions/query/conditions.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

the `Err`-variant returned from this function is very large

warning: the `Err`-variant returned from this function is very large
   --> thirtyfour/src/extensions/query/conditions.rs:18:77
    |
18  | pub(crate) fn negate(result: WebDriverResult<bool>, ignore_errors: bool) -> WebDriverResult<bool> {
    |                                                                             ^^^^^^^^^^^^^^^^^^^^^
    |
   ::: thirtyfour/src/error.rs:137:5
    |
137 |     NotInSpec(WebDriverErrorInfo),
    |     ----------------------------- the largest variant contains at least 176 bytes
138 |     #[error("The click event was intercepted by another element: {0}")]
139 |     ElementClickIntercepted(WebDriverErrorInfo),
    |     ------------------------------------------- the variant `ElementClickIntercepted` contains at least 176 bytes
140 |     #[error("The element is not interactable: {0}")]
141 |     ElementNotInteractable(WebDriverErrorInfo),
    |     ------------------------------------------ the variant `ElementNotInteractable` contains at least 176 bytes
142 |     #[error("The certificate is insecure: {0}")]
143 |     InsecureCertificate(WebDriverErrorInfo),
    |     --------------------------------------- the variant `InsecureCertificate` contains at least 176 bytes
144 |     #[error("An argument passed to the WebDriver server was invalid: {0}")]
145 |     InvalidArgument(WebDriverErrorInfo),
    |     ----------------------------------- the variant `InvalidArgument` contains at least 176 bytes
...
149 |     InvalidCookieDomain(WebDriverErrorInfo),
    |     --------------------------------------- the variant `InvalidCookieDomain` contains at least 176 bytes
150 |     #[error("The element is in an invalid state: {0}")]
151 |     InvalidElementState(WebDriverErrorInfo),
    |     --------------------------------------- the variant `InvalidElementState` contains at least 176 bytes
152 |     #[error("The specified element selector is invalid: {0}")]
153 |     InvalidSelector(WebDriverErrorInfo),
    |     ----------------------------------- the variant `InvalidSelector` contains at least 176 bytes
154 |     #[error("The WebDriver session id is invalid: {0}")]
155 |     InvalidSessionId(WebDriverErrorInfo),
    |     ------------------------------------ the variant `InvalidSessionId` contains at least 176 bytes
156 |     #[error("The Javascript code returned an error: {0}")]
157 |     JavascriptError(WebDriverErrorInfo),
    |     ----------------------------------- the variant `JavascriptError` contains at least 176 bytes
158 |     #[error("Unable to scroll the element into the viewport: {0}")]
159 |     MoveTargetOutOfBounds(WebDriverErrorInfo),
    |     ----------------------------------------- the variant `MoveTargetOutOfBounds` contains at least 176 bytes
160 |     #[error("Alert not found: {0}")]
161 |     NoSuchAlert(WebDriverErrorInfo),
    |     ------------------------------- the variant `NoSuchAlert` contains at least 176 bytes
162 |     #[error("Cookie not found: {0}")]
163 |     NoSuchCookie(WebDriverErrorInfo),
    |     -------------------------------- the variant `NoSuchCookie` contains at least 176 bytes
164 |     #[error("Element not found: {0}")]
165 |     NoSuchElement(WebDriverErrorInfo),
    |     --------------------------------- the variant `NoSuchElement` contains at least 176 bytes
166 |     #[error("Frame not found: {0}")]
167 |     NoSuchFrame(WebDriverErrorInfo),
    |     ------------------------------- the variant `NoSuchFrame` contains at least 176 bytes
168 |     #[error("Window not found: {0}")]
169 |     NoSuchWindow(WebDriverErrorInfo),
    |     -------------------------------- the variant `NoSuchWindow` contains at least 176 bytes
170 |     #[error("The Javascript code did not complete within the script timeout (see WebDriver::set_script_timeout()): {0}")]
171 |     ScriptTimeout(WebDriverErrorInfo),
    |     --------------------------------- the variant `ScriptTimeout` contains at least 176 bytes
172 |     #[error("Unable to create WebDriver session: {0}")]
173 |     SessionNotCreated(WebDriverErrorInfo),
    |     ------------------------------------- the variant `SessionNotCreated` contains at least 176 bytes
174 |     #[error("Element is stale: {0}")]
175 |     StaleElementReference(WebDriverErrorInfo),
    |     ----------------------------------------- the variant `StaleElementReference` contains at least 176 bytes
176 |     #[error("Operation timed out: {0}")]
177 |     WebDriverTimeout(WebDriverErrorInfo),
    |     ------------------------------------ the variant `WebDriverTimeout` contains at least 176 bytes
178 |     #[error("Unable to set cookie: {0}")]
179 |     UnableToSetCookie(WebDriverErrorInfo),
    |     ------------------------------------- the variant `UnableToSetCookie` contains at least 176 bytes
180 |     #[error("Unable to capture screenshot: {0}")]
181 |     UnableToCaptureScreen(WebDriverErrorInfo),
    |     ----------------------------------------- the variant `UnableToCaptureScreen` contains at least 176 bytes
182 |     #[error("An unexpected alert is currently open: {0}")]
183 |     UnexpectedAlertOpen(WebDriverErrorInfo),
    |     --------------------------------------- the variant `UnexpectedAlertOpen` contains at least 176 bytes
184 |     #[error("Unknown command: {0}")]
185 |     UnknownCommand(WebDriverErrorInfo),
    |     ---------------------------------- the variant `UnknownCommand` contains at least 176 bytes
186 |     #[error("Unknown error: {0}")]
187 |     UnknownError(WebDriverErrorInfo),
    |     -------------------------------- the variant `UnknownError` contains at least 176 bytes
188 |     #[error("Unknown method: {0}")]
189 |     UnknownMethod(WebDriverErrorInfo),
    |     --------------------------------- the variant `UnknownMethod` contains at least 176 bytes
190 |     #[error("Unsupport operation: {0}")]
191 |     UnsupportedOperation(WebDriverErrorInfo),
    |     ---------------------------------------- the variant `UnsupportedOperation` contains at least 176 bytes
    |
    = help: try reducing the size of `error::WebDriverError`, for example by boxing large elements or replacing it with `Box<error::WebDriverError>`
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err

Check warning on line 10 in thirtyfour/src/extensions/query/conditions.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

the `Err`-variant returned from this function is very large

warning: the `Err`-variant returned from this function is very large
   --> thirtyfour/src/extensions/query/conditions.rs:10:6
    |
10  | ) -> WebDriverResult<bool> {
    |      ^^^^^^^^^^^^^^^^^^^^^
    |
   ::: thirtyfour/src/error.rs:137:5
    |
137 |     NotInSpec(WebDriverErrorInfo),
    |     ----------------------------- the largest variant contains at least 176 bytes
138 |     #[error("The click event was intercepted by another element: {0}")]
139 |     ElementClickIntercepted(WebDriverErrorInfo),
    |     ------------------------------------------- the variant `ElementClickIntercepted` contains at least 176 bytes
140 |     #[error("The element is not interactable: {0}")]
141 |     ElementNotInteractable(WebDriverErrorInfo),
    |     ------------------------------------------ the variant `ElementNotInteractable` contains at least 176 bytes
142 |     #[error("The certificate is insecure: {0}")]
143 |     InsecureCertificate(WebDriverErrorInfo),
    |     --------------------------------------- the variant `InsecureCertificate` contains at least 176 bytes
144 |     #[error("An argument passed to the WebDriver server was invalid: {0}")]
145 |     InvalidArgument(WebDriverErrorInfo),
    |     ----------------------------------- the variant `InvalidArgument` contains at least 176 bytes
...
149 |     InvalidCookieDomain(WebDriverErrorInfo),
    |     --------------------------------------- the variant `InvalidCookieDomain` contains at least 176 bytes
150 |     #[error("The element is in an invalid state: {0}")]
151 |     InvalidElementState(WebDriverErrorInfo),
    |     --------------------------------------- the variant `InvalidElementState` contains at least 176 bytes
152 |     #[error("The specified element selector is invalid: {0}")]
153 |     InvalidSelector(WebDriverErrorInfo),
    |     ----------------------------------- the variant `InvalidSelector` contains at least 176 bytes
154 |     #[error("The WebDriver session id is invalid: {0}")]
155 |     InvalidSessionId(WebDriverErrorInfo),
    |     ------------------------------------ the variant `InvalidSessionId` contains at least 176 bytes
156 |     #[error("The Javascript code returned an error: {0}")]
157 |     JavascriptError(WebDriverErrorInfo),
    |     ----------------------------------- the variant `JavascriptError` contains at least 176 bytes
158 |     #[error("Unable to scroll the element into the viewport: {0}")]
159 |     MoveTargetOutOfBounds(WebDriverErrorInfo),
    |     ----------------------------------------- the variant `MoveTargetOutOfBounds` contains at least 176 bytes
160 |     #[error("Alert not found: {0}")]
161 |     NoSuchAlert(WebDriverErrorInfo),
    |     ------------------------------- the variant `NoSuchAlert` contains at least 176 bytes
162 |     #[error("Cookie not found: {0}")]
163 |     NoSuchCookie(WebDriverErrorInfo),
    |     -------------------------------- the variant `NoSuchCookie` contains at least 176 bytes
164 |     #[error("Element not found: {0}")]
165 |     NoSuchElement(WebDriverErrorInfo),
    |     --------------------------------- the variant `NoSuchElement` contains at least 176 bytes
166 |     #[error("Frame not found: {0}")]
167 |     NoSuchFrame(WebDriverErrorInfo),
    |     ------------------------------- the variant `NoSuchFrame` contains at least 176 bytes
168 |     #[error("Window not found: {0}")]
169 |     NoSuchWindow(WebDriverErrorInfo),
    |     -------------------------------- the variant `NoSuchWindow` contains at least 176 bytes
170 |     #[error("The Javascript code did not complete within the script timeout (see WebDriver::set_script_timeout()): {0}")]
171 |     ScriptTimeout(WebDriverErrorInfo),
    |     --------------------------------- the variant `ScriptTimeout` contains at least 176 bytes
172 |     #[error("Unable to create WebDriver session: {0}")]
173 |     SessionNotCreated(WebDriverErrorInfo),
    |     ------------------------------------- the variant `SessionNotCreated` contains at least 176 bytes
174 |     #[error("Element is stale: {0}")]
175 |     StaleElementReference(WebDriverErrorInfo),
    |     ----------------------------------------- the variant `StaleElementReference` contains at least 176 bytes
176 |     #[error("Operation timed out: {0}")]
177 |     WebDriverTimeout(WebDriverErrorInfo),
    |     ------------------------------------ the variant `WebDriverTimeout` contains at least 176 bytes
178 |     #[error("Unable to set cookie: {0}")]
179 |     UnableToSetCookie(WebDriverErrorInfo),
    |     ------------------------------------- the variant `UnableToSetCookie` contains at least 176 bytes
180 |     #[error("Unable to capture screenshot: {0}")]
181 |     UnableToCaptureScreen(WebDriverErrorInfo),
    |     ----------------------------------------- the variant `UnableToCaptureScreen` contains at least 176 bytes
182 |     #[error("An unexpected alert is currently open: {0}")]
183 |     UnexpectedAlertOpen(WebDriverErrorInfo),
    |     --------------------------------------- the variant `UnexpectedAlertOpen` contains at least 176 bytes
184 |     #[error("Unknown command: {0}")]
185 |     UnknownCommand(WebDriverErrorInfo),
    |     ---------------------------------- the variant `UnknownCommand` contains at least 176 bytes
186 |     #[error("Unknown error: {0}")]
187 |     UnknownError(WebDriverErrorInfo),
    |     -------------------------------- the variant `UnknownError` contains at least 176 bytes
188 |     #[error("Unknown method: {0}")]
189 |     UnknownMethod(WebDriverErrorInfo),
    |     --------------------------------- the variant `UnknownMethod` contains at least 176 bytes
190 |     #[error("Unsupport operation: {0}")]
191 |     UnsupportedOperation(WebDriverErrorInfo),
    |     ---------------------------------------- the variant `UnsupportedOperation` contains at least 176 bytes
    |
    = help: try reducing the size of `error::WebDriverError`, for example by boxing large elements or replacing it with `Box<error::WebDriverError>`
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err

Check warning on line 287 in thirtyfour/src/common/capabilities/firefox.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

the `Err`-variant returned from this function is very large

warning: the `Err`-variant returned from this function is very large
   --> thirtyfour/src/common/capabilities/firefox.rs:287:43
    |
287 |     pub fn unset_user_agent(&mut self) -> WebDriverResult<()> {
    |                                           ^^^^^^^^^^^^^^^^^^^
    |
   ::: thirtyfour/src/error.rs:137:5
    |
137 |     NotInSpec(WebDriverErrorInfo),
    |     ----------------------------- the largest variant contains at least 176 bytes
138 |     #[error("The click event was intercepted by another element: {0}")]
139 |     ElementClickIntercepted(WebDriverErrorInfo),
    |     ------------------------------------------- the variant `ElementClickIntercepted` contains at least 176 bytes
140 |     #[error("The element is not interactable: {0}")]
141 |     ElementNotInteractable(WebDriverErrorInfo),
    |     ------------------------------------------ the variant `ElementNotInteractable` contains at least 176 bytes
142 |     #[error("The certificate is insecure: {0}")]
143 |     InsecureCertificate(WebDriverErrorInfo),
    |     --------------------------------------- the variant `InsecureCertificate` contains at least 176 bytes
144 |     #[error("An argument passed to the WebDriver server was invalid: {0}")]
145 |     InvalidArgument(WebDriverErrorInfo),
    |     ----------------------------------- the variant `InvalidArgument` contains at least 176 bytes
...
149 |     InvalidCookieDomain(WebDriverErrorInfo),
    |     --------------------------------------- the variant `InvalidCookieDomain` contains at least 176 bytes
150 |     #[error("The element is in an invalid state: {0}")]
151 |     InvalidElementState(WebDriverErrorInfo),
    |     --------------------------------------- the variant `InvalidElementState` contains at least 176 bytes
152 |     #[error("The specified element selector is invalid: {0}")]
153 |     InvalidSelector(WebDriverErrorInfo),
    |     ----------------------------------- the variant `InvalidSelector` contains at least 176 bytes
154 |     #[error("The WebDriver session id is invalid: {0}")]
155 |     InvalidSessionId(WebDriverErrorInfo),
    |     ------------------------------------ the variant `InvalidSessionId` contains at least 176 bytes
156 |     #[error("The Javascript code returned an error: {0}")]
157 |     JavascriptError(WebDriverErrorInfo),
    |     ----------------------------------- the variant `JavascriptError` contains at least 176 bytes
158 |     #[error("Unable to scroll the element into the viewport: {0}")]
159 |     MoveTargetOutOfBounds(WebDriverErrorInfo),
    |     ----------------------------------------- the variant `MoveTargetOutOfBounds` contains at least 176 bytes
160 |     #[error("Alert not found: {0}")]
161 |     NoSuchAlert(WebDriverErrorInfo),
    |     ------------------------------- the variant `NoSuchAlert` contains at least 176 bytes
162 |     #[error("Cookie not found: {0}")]
163 |     NoSuchCookie(WebDriverErrorInfo),
    |     -------------------------------- the variant `NoSuchCookie` contains at least 176 bytes
164 |     #[error("Element not found: {0}")]
165 |     NoSuchElement(WebDriverErrorInfo),
    |     --------------------------------- the variant `NoSuchElement` contains at least 176 bytes
166 |     #[error("Frame not found: {0}")]
167 |     NoSuchFrame(WebDriverErrorInfo),
    |     ------------------------------- the variant `NoSuchFrame` contains at least 176 bytes
168 |     #[error("Window not found: {0}")]
169 |     NoSuchWindow(WebDriverErrorInfo),
    |     -------------------------------- the variant `NoSuchWindow` contains at least 176 bytes
170 |     #[error("The Javascript code did not complete within the script timeout (see WebDriver::set_script_timeout()): {0}")]
171 |     ScriptTimeout(WebDriverErrorInfo),
    |     --------------------------------- the variant `ScriptTimeout` contains at least 176 bytes
172 |     #[error("Unable to create WebDriver session: {0}")]
173 |     SessionNotCreated(WebDriverErrorInfo),
    |     ------------------------------------- the variant `SessionNotCreated` contains at least 176 bytes
174 |     #[error("Element is stale: {0}")]
175 |     StaleElementReference(WebDriverErrorInfo),
    |     ----------------------------------------- the variant `StaleElementReference` contains at least 176 bytes
176 |     #[error("Operation timed out: {0}")]
177 |     WebDriverTimeout(WebDriverErrorInfo),
    |     ------------------------------------ the variant `WebDriverTimeout` contains at least 176 bytes
178 |     #[error("Unable to set cookie: {0}")]
179 |     UnableToSetCookie(WebDriverErrorInfo),
    |     ------------------------------------- the variant `UnableToSetCookie` contains at least 176 bytes
180 |     #[error("Unable to capture screenshot: {0}")]
181 |     UnableToCaptureScreen(WebDriverErrorInfo),
    |     ----------------------------------------- the variant `UnableToCaptureScreen` contains at least 176 bytes
182 |     #[error("An unexpected alert is currently open: {0}")]
183 |     UnexpectedAlertOpen(WebDriverErrorInfo),
    |     --------------------------------------- the variant `UnexpectedAlertOpen` contains at least 176 bytes
184 |     #[error("Unknown command: {0}")]
185 |     UnknownCommand(WebDriverErrorInfo),
    |     ---------------------------------- the variant `UnknownCommand` contains at least 176 bytes
186 |     #[error("Unknown error: {0}")]
187 |     UnknownError(WebDriverErrorInfo),
    |     -------------------------------- the variant `UnknownError` contains at least 176 bytes
188 |     #[error("Unknown method: {0}")]
189 |     UnknownMethod(WebDriverErrorInfo),
    |     --------------------------------- the variant `UnknownMethod` contains at least 176 bytes
190 |     #[error("Unsupport operation: {0}")]
191 |     UnsupportedOperation(WebDriverErrorInfo),
    |     ---------------------------------------- the variant `UnsupportedOperation` contains at least 176 bytes
    |
    = help: try reducing the size of `error::WebDriverError`, for example by boxing large elements or replacing it with `Box<error::WebDriverError>`
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err

Check warning on line 282 in thirtyfour/src/common/capabilities/firefox.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

the `Err`-variant returned from this function is very large

warning: the `Err`-variant returned from this function is very large
   --> thirtyfour/src/common/capabilities/firefox.rs:282:56
    |
282 |     pub fn set_user_agent(&mut self, value: String) -> WebDriverResult<()> {
    |                                                        ^^^^^^^^^^^^^^^^^^^
    |
   ::: thirtyfour/src/error.rs:137:5
    |
137 |     NotInSpec(WebDriverErrorInfo),
    |     ----------------------------- the largest variant contains at least 176 bytes
138 |     #[error("The click event was intercepted by another element: {0}")]
139 |     ElementClickIntercepted(WebDriverErrorInfo),
    |     ------------------------------------------- the variant `ElementClickIntercepted` contains at least 176 bytes
140 |     #[error("The element is not interactable: {0}")]
141 |     ElementNotInteractable(WebDriverErrorInfo),
    |     ------------------------------------------ the variant `ElementNotInteractable` contains at least 176 bytes
142 |     #[error("The certificate is insecure: {0}")]
143 |     InsecureCertificate(WebDriverErrorInfo),
    |     --------------------------------------- the variant `InsecureCertificate` contains at least 176 bytes
144 |     #[error("An argument passed to the WebDriver server was invalid: {0}")]
145 |     InvalidArgument(WebDriverErrorInfo),
    |     ----------------------------------- the variant `InvalidArgument` contains at least 176 bytes
...
149 |     InvalidCookieDomain(WebDriverErrorInfo),
    |     --------------------------------------- the variant `InvalidCookieDomain` contains at least 176 bytes
150 |     #[error("The element is in an invalid state: {0}")]
151 |     InvalidElementState(WebDriverErrorInfo),
    |     --------------------------------------- the variant `InvalidElementState` contains at least 176 bytes
152 |     #[error("The specified element selector is invalid: {0}")]
153 |     InvalidSelector(WebDriverErrorInfo),
    |     ----------------------------------- the variant `InvalidSelector` contains at least 176 bytes
154 |     #[error("The WebDriver session id is invalid: {0}")]
155 |     InvalidSessionId(WebDriverErrorInfo),
    |     ------------------------------------ the variant `InvalidSessionId` contains at least 176 bytes
156 |     #[error("The Javascript code returned an error: {0}")]
157 |     JavascriptError(WebDriverErrorInfo),
    |     ----------------------------------- the variant `JavascriptError` contains at least 176 bytes
158 |     #[error("Unable to scroll the element into the viewport: {0}")]
159 |     MoveTargetOutOfBounds(WebDriverErrorInfo),
    |     ----------------------------------------- the variant `MoveTargetOutOfBounds` contains at least 176 bytes
160 |     #[error("Alert not found: {0}")]
161 |     NoSuchAlert(WebDriverErrorInfo),
    |     ------------------------------- the variant `NoSuchAlert` contains at least 176 bytes
162 |     #[error("Cookie not found: {0}")]
163 |     NoSuchCookie(WebDriverErrorInfo),
    |     -------------------------------- the variant `NoSuchCookie` contains at least 176 bytes
164 |     #[error("Element not found: {0}")]
165 |     NoSuchElement(WebDriverErrorInfo),
    |     --------------------------------- the variant `NoSuchElement` contains at least 176 bytes
166 |     #[error("Frame not found: {0}")]
167 |     NoSuchFrame(WebDriverErrorInfo),
    |     ------------------------------- the variant `NoSuchFrame` contains at least 176 bytes
168 |     #[error("Window not found: {0}")]
169 |     NoSuchWindow(WebDriverErrorInfo),
    |     -------------------------------- the variant `NoSuchWindow` contains at least 176 bytes
170 |     #[error("The Javascript code did not complete within the script timeout (see WebDriver::set_script_timeout()): {0}")]
171 |     ScriptTimeout(WebDriverErrorInfo),
    |     --------------------------------- the variant `ScriptTimeout` contains at least 176 bytes
172 |     #[error("Unable to create WebDriver session: {0}")]
173 |     SessionNotCreated(WebDriverErrorInfo),
    |     ------------------------------------- the variant `SessionNotCreated` contains at least 176 bytes
174 |     #[error("Element is stale: {0}")]
175 |     StaleElementReference(WebDriverErrorInfo),
    |     ----------------------------------------- the variant `StaleElementReference` contains at least 176 bytes
176 |     #[error("Operation timed out: {0}")]
177 |     WebDriverTimeout(WebDriverErrorInfo),
    |     ------------------------------------ the variant `WebDriverTimeout` contains at least 176 bytes
178 |     #[error("Unable to set cookie: {0}")]
179 |     UnableToSetCookie(WebDriverErrorInfo),
    |     ------------------------------------- the variant `UnableToSetCookie` contains at least 176 bytes
180 |     #[error("Unable to capture screenshot: {0}")]
181 |     UnableToCaptureScreen(WebDriverErrorInfo),
    |     ----------------------------------------- the variant `UnableToCaptureScreen` contains at least 176 bytes
182 |     #[error("An unexpected alert is currently open: {0}")]
183 |     UnexpectedAlertOpen(WebDriverErrorInfo),
    |     --------------------------------------- the variant `UnexpectedAlertOpen` contains at least 176 bytes
184 |     #[error("Unknown command: {0}")]
185 |     UnknownCommand(WebDriverErrorInfo),
    |     ---------------------------------- the variant `UnknownCommand` contains at least 176 bytes
186 |     #[error("Unknown error: {0}")]
187 |     UnknownError(WebDriverErrorInfo),
    |     -------------------------------- the variant `UnknownError` contains at least 176 bytes
188 |     #[error("Unknown method: {0}")]
189 |     UnknownMethod(WebDriverErrorInfo),
    |     --------------------------------- the variant `UnknownMethod` contains at least 176 bytes
190 |     #[error("Unsupport operation: {0}")]
191 |     UnsupportedOperation(WebDriverErrorInfo),
    |     ---------------------------------------- the variant `UnsupportedOperation` contains at least 176 bytes
    |
    = help: try reducing the size of `error::WebDriverError`, for example by boxing large elements or replacing it with `Box<error::WebDriverError>`
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err

Check warning on line 277 in thirtyfour/src/common/capabilities/firefox.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

the `Err`-variant returned from this function is very large

warning: the `Err`-variant returned from this function is very large
   --> thirtyfour/src/common/capabilities/firefox.rs:277:47
    |
277 |     pub fn unset_webdriver_port(&mut self) -> WebDriverResult<()> {
    |                                               ^^^^^^^^^^^^^^^^^^^
    |
   ::: thirtyfour/src/error.rs:137:5
    |
137 |     NotInSpec(WebDriverErrorInfo),
    |     ----------------------------- the largest variant contains at least 176 bytes
138 |     #[error("The click event was intercepted by another element: {0}")]
139 |     ElementClickIntercepted(WebDriverErrorInfo),
    |     ------------------------------------------- the variant `ElementClickIntercepted` contains at least 176 bytes
140 |     #[error("The element is not interactable: {0}")]
141 |     ElementNotInteractable(WebDriverErrorInfo),
    |     ------------------------------------------ the variant `ElementNotInteractable` contains at least 176 bytes
142 |     #[error("The certificate is insecure: {0}")]
143 |     InsecureCertificate(WebDriverErrorInfo),
    |     --------------------------------------- the variant `InsecureCertificate` contains at least 176 bytes
144 |     #[error("An argument passed to the WebDriver server was invalid: {0}")]
145 |     InvalidArgument(WebDriverErrorInfo),
    |     ----------------------------------- the variant `InvalidArgument` contains at least 176 bytes
...
149 |     InvalidCookieDomain(WebDriverErrorInfo),
    |     --------------------------------------- the variant `InvalidCookieDomain` contains at least 176 bytes
150 |     #[error("The element is in an invalid state: {0}")]
151 |     InvalidElementState(WebDriverErrorInfo),
    |     --------------------------------------- the variant `InvalidElementState` contains at least 176 bytes
152 |     #[error("The specified element selector is invalid: {0}")]
153 |     InvalidSelector(WebDriverErrorInfo),
    |     ----------------------------------- the variant `InvalidSelector` contains at least 176 bytes
154 |     #[error("The WebDriver session id is invalid: {0}")]
155 |     InvalidSessionId(WebDriverErrorInfo),
    |     ------------------------------------ the variant `InvalidSessionId` contains at least 176 bytes
156 |     #[error("The Javascript code returned an error: {0}")]
157 |     JavascriptError(WebDriverErrorInfo),
    |     ----------------------------------- the variant `JavascriptError` contains at least 176 bytes
158 |     #[error("Unable to scroll the element into the viewport: {0}")]
159 |     MoveTargetOutOfBounds(WebDriverErrorInfo),
    |     ----------------------------------------- the variant `MoveTargetOutOfBounds` contains at least 176 bytes
160 |     #[error("Alert not found: {0}")]
161 |     NoSuchAlert(WebDriverErrorInfo),
    |     ------------------------------- the variant `NoSuchAlert` contains at least 176 bytes
162 |     #[error("Cookie not found: {0}")]
163 |     NoSuchCookie(WebDriverErrorInfo),
    |     -------------------------------- the variant `NoSuchCookie` contains at least 176 bytes
164 |     #[error("Element not found: {0}")]
165 |     NoSuchElement(WebDriverErrorInfo),
    |     --------------------------------- the variant `NoSuchElement` contains at least 176 bytes
166 |     #[error("Frame not found: {0}")]
167 |     NoSuchFrame(WebDriverErrorInfo),
    |     ------------------------------- the variant `NoSuchFrame` contains at least 176 bytes
168 |     #[error("Window not found: {0}")]
169 |     NoSuchWindow(WebDriverErrorInfo),
    |     -------------------------------- the variant `NoSuchWindow` contains at least 176 bytes
170 |     #[error("The Javascript code did not complete within the script timeout (see WebDriver::set_script_timeout()): {0}")]
171 |     ScriptTimeout(WebDriverErrorInfo),
    |     --------------------------------- the variant `ScriptTimeout` contains at least 176 bytes
172 |     #[error("Unable to create WebDriver session: {0}")]
173 |     SessionNotCreated(WebDriverErrorInfo),
    |     ------------------------------------- the variant `SessionNotCreated` contains at least 176 bytes
174 |     #[error("Element is stale: {0}")]
175 |     StaleElementReference(WebDriverErrorInfo),
    |     ----------------------------------------- the variant `StaleElementReference` contains at least 176 bytes
176 |     #[error("Operation timed out: {0}")]
177 |     WebDriverTimeout(WebDriverErrorInfo),
    |     ------------------------------------ the variant `WebDriverTimeout` contains at least 176 bytes
178 |     #[error("Unable to set cookie: {0}")]
179 |     UnableToSetCookie(WebDriverErrorInfo),
    |     ------------------------------------- the variant `UnableToSetCookie` contains at least 176 bytes
180 |     #[error("Unable to capture screenshot: {0}")]
181 |     UnableToCaptureScreen(WebDriverErrorInfo),
    |     ----------------------------------------- the variant `UnableToCaptureScreen` contains at least 176 bytes
182 |     #[error("An unexpected alert is currently open: {0}")]
183 |     UnexpectedAlertOpen(WebDriverErrorInfo),
    |     --------------------------------------- the variant `UnexpectedAlertOpen` contains at least 176 bytes
184 |     #[error("Unknown command: {0}")]
185 |     UnknownCommand(WebDriverErrorInfo),
    |     ---------------------------------- the variant `UnknownCommand` contains at least 176 bytes
186 |     #[error("Unknown error: {0}")]
187 |     UnknownError(WebDriverErrorInfo),
    |     -------------------------------- the variant `UnknownError` contains at least 176 bytes
188 |     #[error("Unknown method: {0}")]
189 |     UnknownMethod(WebDriverErrorInfo),
    |     --------------------------------- the variant `UnknownMethod` contains at least 176 bytes
190 |     #[error("Unsupport operation: {0}")]
191 |     UnsupportedOperation(WebDriverErrorInfo),
    |     ---------------------------------------- the variant `UnsupportedOperation` contains at least 176 bytes
    |
    = help: try reducing the size of `error::WebDriverError`, for example by boxing large elements or replacing it with `Box<error::WebDriverError>`
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err

Check warning on line 272 in thirtyfour/src/common/capabilities/firefox.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

the `Err`-variant returned from this function is very large

warning: the `Err`-variant returned from this function is very large
   --> thirtyfour/src/common/capabilities/firefox.rs:272:57
    |
272 |     pub fn set_webdriver_port(&mut self, value: u16) -> WebDriverResult<()> {
    |                                                         ^^^^^^^^^^^^^^^^^^^
    |
   ::: thirtyfour/src/error.rs:137:5
    |
137 |     NotInSpec(WebDriverErrorInfo),
    |     ----------------------------- the largest variant contains at least 176 bytes
138 |     #[error("The click event was intercepted by another element: {0}")]
139 |     ElementClickIntercepted(WebDriverErrorInfo),
    |     ------------------------------------------- the variant `ElementClickIntercepted` contains at least 176 bytes
140 |     #[error("The element is not interactable: {0}")]
141 |     ElementNotInteractable(WebDriverErrorInfo),
    |     ------------------------------------------ the variant `ElementNotInteractable` contains at least 176 bytes
142 |     #[error("The certificate is insecure: {0}")]
143 |     InsecureCertificate(WebDriverErrorInfo),
    |     --------------------------------------- the variant `InsecureCertificate` contains at least 176 bytes
144 |     #[error("An argument passed to the WebDriver server was invalid: {0}")]
145 |     InvalidArgument(WebDriverErrorInfo),
    |     ----------------------------------- the variant `InvalidArgument` contains at least 176 bytes
...
149 |     InvalidCookieDomain(WebDriverErrorInfo),
    |     --------------------------------------- the variant `InvalidCookieDomain` contains at least 176 bytes
150 |     #[error("The element is in an invalid state: {0}")]
151 |     InvalidElementState(WebDriverErrorInfo),
    |     --------------------------------------- the variant `InvalidElementState` contains at least 176 bytes
152 |     #[error("The specified element selector is invalid: {0}")]
153 |     InvalidSelector(WebDriverErrorInfo),
    |     ----------------------------------- the variant `InvalidSelector` contains at least 176 bytes
154 |     #[error("The WebDriver session id is invalid: {0}")]
155 |     InvalidSessionId(WebDriverErrorInfo),
    |     ------------------------------------ the variant `InvalidSessionId` contains at least 176 bytes
156 |     #[error("The Javascript code returned an error: {0}")]
157 |     JavascriptError(WebDriverErrorInfo),
    |     ----------------------------------- the variant `JavascriptError` contains at least 176 bytes
158 |     #[error("Unable to scroll the element into the viewport: {0}")]
159 |     MoveTargetOutOfBounds(WebDriverErrorInfo),
    |     ----------------------------------------- the variant `MoveTargetOutOfBounds` contains at least 176 bytes
160 |     #[error("Alert not found: {0}")]
161 |     NoSuchAlert(WebDriverErrorInfo),
    |     ------------------------------- the variant `NoSuchAlert` contains at least 176 bytes
162 |     #[error("Cookie not found: {0}")]
163 |     NoSuchCookie(WebDriverErrorInfo),
    |     -------------------------------- the variant `NoSuchCookie` contains at least 176 bytes
164 |     #[error("Element not found: {0}")]
165 |     NoSuchElement(WebDriverErrorInfo),
    |     --------------------------------- the variant `NoSuchElement` contains at least 176 bytes
166 |     #[error("Frame not found: {0}")]
167 |     NoSuchFrame(WebDriverErrorInfo),
    |     ------------------------------- the variant `NoSuchFrame` contains at least 176 bytes
168 |     #[error("Window not found: {0}")]
169 |     NoSuchWindow(WebDriverErrorInfo),
    |     -------------------------------- the variant `NoSuchWindow` contains at least 176 bytes
170 |     #[error("The Javascript code did not complete within the script timeout (see WebDriver::set_script_timeout()): {0}")]
171 |     ScriptTimeout(WebDriverErrorInfo),
    |     --------------------------------- the variant `ScriptTimeout` contains at least 176 bytes
172 |     #[error("Unable to create WebDriver session: {0}")]
173 |     SessionNotCreated(WebDriverErrorInfo),
    |     ------------------------------------- the variant `SessionNotCreated` contains at least 176 bytes
174 |     #[error("Element is stale: {0}")]
175 |     StaleElementReference(WebDriverErrorInfo),
    |     ----------------------------------------- the variant `StaleElementReference` contains at least 176 bytes
176 |     #[error("Operation timed out: {0}")]
177 |     WebDriverTimeout(WebDriverErrorInfo),
    |     ------------------------------------ the variant `WebDriverTimeout` contains at least 176 bytes
178 |     #[error("Unable to set cookie: {0}")]
179 |     UnableToSetCookie(WebDriverErrorInfo),
    |     ------------------------------------- the variant `UnableToSetCookie` contains at least 176 bytes
180 |     #[error("Unable to capture screenshot: {0}")]
181 |     UnableToCaptureScreen(WebDriverErrorInfo),
    |     ----------------------------------------- the variant `UnableToCaptureScreen` contains at least 176 bytes
182 |     #[error("An unexpected alert is currently open: {0}")]
183 |     UnexpectedAlertOpen(WebDriverErrorInfo),
    |     --------------------------------------- the variant `UnexpectedAlertOpen` contains at least 176 bytes
184 |     #[error("Unknown command: {0}")]
185 |     UnknownCommand(WebDriverErrorInfo),
    |     ---------------------------------- the variant `UnknownCommand` contains at least 176 bytes
186 |     #[error("Unknown error: {0}")]
187 |     UnknownError(WebDriverErrorInfo),
    |     -------------------------------- the variant `UnknownError` contains at least 176 bytes
188 |     #[error("Unknown method: {0}")]
189 |     UnknownMethod(WebDriverErrorInfo),
    |     --------------------------------- the variant `UnknownMethod` contains at least 176 bytes
190 |     #[error("Unsupport operation: {0}")]
191 |     UnsupportedOperation(WebDriverErrorInfo),
    |     ---------------------------------------- the variant `UnsupportedOperation` contains at least 176 bytes
    |
    = help: try reducing the size of `error::WebDriverError`, for example by boxing large elements or replacing it with `Box<error::WebDriverError>`
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err

Check warning on line 267 in thirtyfour/src/common/capabilities/firefox.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

the `Err`-variant returned from this function is very large

warning: the `Err`-variant returned from this function is very large
   --> thirtyfour/src/common/capabilities/firefox.rs:267:46
    |
267 |     pub fn unset_load_strategy(&mut self) -> WebDriverResult<()> {
    |                                              ^^^^^^^^^^^^^^^^^^^
    |
   ::: thirtyfour/src/error.rs:137:5
    |
137 |     NotInSpec(WebDriverErrorInfo),
    |     ----------------------------- the largest variant contains at least 176 bytes
138 |     #[error("The click event was intercepted by another element: {0}")]
139 |     ElementClickIntercepted(WebDriverErrorInfo),
    |     ------------------------------------------- the variant `ElementClickIntercepted` contains at least 176 bytes
140 |     #[error("The element is not interactable: {0}")]
141 |     ElementNotInteractable(WebDriverErrorInfo),
    |     ------------------------------------------ the variant `ElementNotInteractable` contains at least 176 bytes
142 |     #[error("The certificate is insecure: {0}")]
143 |     InsecureCertificate(WebDriverErrorInfo),
    |     --------------------------------------- the variant `InsecureCertificate` contains at least 176 bytes
144 |     #[error("An argument passed to the WebDriver server was invalid: {0}")]
145 |     InvalidArgument(WebDriverErrorInfo),
    |     ----------------------------------- the variant `InvalidArgument` contains at least 176 bytes
...
149 |     InvalidCookieDomain(WebDriverErrorInfo),
    |     --------------------------------------- the variant `InvalidCookieDomain` contains at least 176 bytes
150 |     #[error("The element is in an invalid state: {0}")]
151 |     InvalidElementState(WebDriverErrorInfo),
    |     --------------------------------------- the variant `InvalidElementState` contains at least 176 bytes
152 |     #[error("The specified element selector is invalid: {0}")]
153 |     InvalidSelector(WebDriverErrorInfo),
    |     ----------------------------------- the variant `InvalidSelector` contains at least 176 bytes
154 |     #[error("The WebDriver session id is invalid: {0}")]
155 |     InvalidSessionId(WebDriverErrorInfo),
    |     ------------------------------------ the variant `InvalidSessionId` contains at least 176 bytes
156 |     #[error("The Javascript code returned an error: {0}")]
157 |     JavascriptError(WebDriverErrorInfo),
    |     ----------------------------------- the variant `JavascriptError` contains at least 176 bytes
158 |     #[error("Unable to scroll the element into the viewport: {0}")]
159 |     MoveTargetOutOfBounds(WebDriverErrorInfo),
    |     ----------------------------------------- the variant `MoveTargetOutOfBounds` contains at least 176 bytes
160 |     #[error("Alert not found: {0}")]
161 |     NoSuchAlert(WebDriverErrorInfo),
    |     ------------------------------- the variant `NoSuchAlert` contains at least 176 bytes
162 |     #[error("Cookie not found: {0}")]
163 |     NoSuchCookie(WebDriverErrorInfo),
    |     -------------------------------- the variant `NoSuchCookie` contains at least 176 bytes
164 |     #[error("Element not found: {0}")]
165 |     NoSuchElement(WebDriverErrorInfo),
    |     --------------------------------- the variant `NoSuchElement` contains at least 176 bytes
166 |     #[error("Frame not found: {0}")]
167 |     NoSuchFrame(WebDriverErrorInfo),
    |     ------------------------------- the variant `NoSuchFrame` contains at least 176 bytes
168 |     #[error("Window not found: {0}")]
169 |     NoSuchWindow(WebDriverErrorInfo),
    |     -------------------------------- the variant `NoSuchWindow` contains at least 176 bytes
170 |     #[error("The Javascript code did not complete within the script timeout (see WebDriver::set_script_timeout()): {0}")]
171 |     ScriptTimeout(WebDriverErrorInfo),
    |     --------------------------------- the variant `ScriptTimeout` contains at least 176 bytes
172 |     #[error("Unable to create WebDriver session: {0}")]
173 |     SessionNotCreated(WebDriverErrorInfo),
    |     ------------------------------------- the variant `SessionNotCreated` contains at least 176 bytes
174 |     #[error("Element is stale: {0}")]
175 |     StaleElementReference(WebDriverErrorInfo),
    |     ----------------------------------------- the variant `StaleElementReference` contains at least 176 bytes
176 |     #[error("Operation timed out: {0}")]
177 |     WebDriverTimeout(WebDriverErrorInfo),
    |     ------------------------------------ the variant `WebDriverTimeout` contains at least 176 bytes
178 |     #[error("Unable to set cookie: {0}")]
179 |     UnableToSetCookie(WebDriverErrorInfo),
    |     ------------------------------------- the variant `UnableToSetCookie` contains at least 176 bytes
180 |     #[error("Unable to capture screenshot: {0}")]
181 |     UnableToCaptureScreen(WebDriverErrorInfo),
    |     ----------------------------------------- the variant `UnableToCaptureScreen` contains at least 176 bytes
182 |     #[error("An unexpected alert is currently open: {0}")]
183 |     UnexpectedAlertOpen(WebDriverErrorInfo),
    |     --------------------------------------- the variant `UnexpectedAlertOpen` contains at least 176 bytes
184 |     #[error("Unknown command: {0}")]
185 |     UnknownCommand(WebDriverErrorInfo),
    |     ---------------------------------- the variant `UnknownCommand` contains at least 176 bytes
186 |     #[error("Unknown error: {0}")]
187 |     UnknownError(WebDriverErrorInfo),
    |     -------------------------------- the variant `UnknownError` contains at least 176 bytes
188 |     #[error("Unknown method: {0}")]
189 |     UnknownMethod(WebDriverErrorInfo),
    |     --------------------------------- the variant `UnknownMethod` contains at least 176 bytes
190 |     #[error("Unsupport operation: {0}")]
191 |     UnsupportedOperation(WebDriverErrorInfo),
    |     ---------------------------------------- the variant `UnsupportedOperation` contains at least 176 bytes
    |
    = help: try reducing the size of `error::WebDriverError`, for example by boxing large elements or replacing it with `Box<error::WebDriverError>`
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err

Check warning on line 262 in thirtyfour/src/common/capabilities/firefox.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

the `Err`-variant returned from this function is very large

warning: the `Err`-variant returned from this function is very large
   --> thirtyfour/src/common/capabilities/firefox.rs:262:59
    |
262 |     pub fn set_load_strategy(&mut self, value: String) -> WebDriverResult<()> {
    |                                                           ^^^^^^^^^^^^^^^^^^^
    |
   ::: thirtyfour/src/error.rs:137:5
    |
137 |     NotInSpec(WebDriverErrorInfo),
    |     ----------------------------- the largest variant contains at least 176 bytes
138 |     #[error("The click event was intercepted by another element: {0}")]
139 |     ElementClickIntercepted(WebDriverErrorInfo),
    |     ------------------------------------------- the variant `ElementClickIntercepted` contains at least 176 bytes
140 |     #[error("The element is not interactable: {0}")]
141 |     ElementNotInteractable(WebDriverErrorInfo),
    |     ------------------------------------------ the variant `ElementNotInteractable` contains at least 176 bytes
142 |     #[error("The certificate is insecure: {0}")]
143 |     InsecureCertificate(WebDriverErrorInfo),
    |     --------------------------------------- the variant `InsecureCertificate` contains at least 176 bytes
144 |     #[error("An argument passed to the WebDriver server was invalid: {0}")]
145 |     InvalidArgument(WebDriverErrorInfo),
    |     ----------------------------------- the variant `InvalidArgument` contains at least 176 bytes
...
149 |     InvalidCookieDomain(WebDriverErrorInfo),
    |     --------------------------------------- the variant `InvalidCookieDomain` contains at least 176 bytes
150 |     #[error("The element is in an invalid state: {0}")]
151 |     InvalidElementState(WebDriverErrorInfo),
    |     --------------------------------------- the variant `InvalidElementState` contains at least 176 bytes
152 |     #[error("The specified element selector is invalid: {0}")]
153 |     InvalidSelector(WebDriverErrorInfo),
    |     ----------------------------------- the variant `InvalidSelector` contains at least 176 bytes
154 |     #[error("The WebDriver session id is invalid: {0}")]
155 |     InvalidSessionId(WebDriverErrorInfo),
    |     ------------------------------------ the variant `InvalidSessionId` contains at least 176 bytes
156 |     #[error("The Javascript code returned an error: {0}")]
157 |     JavascriptError(WebDriverErrorInfo),
    |     ----------------------------------- the variant `JavascriptError` contains at least 176 bytes
158 |     #[error("Unable to scroll the element into the viewport: {0}")]
159 |     MoveTargetOutOfBounds(WebDriverErrorInfo),
    |     ----------------------------------------- the variant `MoveTargetOutOfBounds` contains at least 176 bytes
160 |     #[error("Alert not found: {0}")]
161 |     NoSuchAlert(WebDriverErrorInfo),
    |     ------------------------------- the variant `NoSuchAlert` contains at least 176 bytes
162 |     #[error("Cookie not found: {0}")]
163 |     NoSuchCookie(WebDriverErrorInfo),
    |     -------------------------------- the variant `NoSuchCookie` contains at least 176 bytes
164 |     #[error("Element not found: {0}")]
165 |     NoSuchElement(WebDriverErrorInfo),
    |     --------------------------------- the variant `NoSuchElement` contains at least 176 bytes
166 |     #[error("Frame not found: {0}")]
167 |     NoSuchFrame(WebDriverErrorInfo),
    |     ------------------------------- the variant `NoSuchFrame` contains at least 176 bytes
168 |     #[error("Window not found: {0}")]
169 |     NoSuchWindow(WebDriverErrorInfo),
    |     -------------------------------- the variant `NoSuchWindow` contains at least 176 bytes
170 |     #[error("The Javascript code did not complete within the script timeout (see WebDriver::set_script_timeout()): {0}")]
171 |     ScriptTimeout(WebDriverErrorInfo),
    |     --------------------------------- the variant `ScriptTimeout` contains at least 176 bytes
172 |     #[error("Unable to create WebDriver session: {0}")]
173 |     SessionNotCreated(WebDriverErrorInfo),
    |     ------------------------------------- the variant `SessionNotCreated` contains at least 176 bytes
174 |     #[error("Element is stale: {0}")]
175 |     StaleElementReference(WebDriverErrorInfo),
    |     ----------------------------------------- the variant `StaleElementReference` contains at least 176 bytes
176 |     #[error("Operation timed out: {0}")]
177 |     WebDriverTimeout(WebDriverErrorInfo),
    |     ------------------------------------ the variant `WebDriverTimeout` contains at least 176 bytes
178 |     #[error("Unable to set cookie: {0}")]
179 |     UnableToSetCookie(WebDriverErrorInfo),
    |     ------------------------------------- the variant `UnableToSetCookie` contains at least 176 bytes
180 |     #[error("Unable to capture screenshot: {0}")]
181 |     UnableToCaptureScreen(WebDriverErrorInfo),
    |     ----------------------------------------- the variant `UnableToCaptureScreen` contains at least 176 bytes
182 |     #[error("An unexpected alert is currently open: {0}")]
183 |     UnexpectedAlertOpen(WebDriverErrorInfo),
    |     --------------------------------------- the variant `UnexpectedAlertOpen` contains at least 176 bytes
184 |     #[error("Unknown command: {0}")]
185 |     UnknownCommand(WebDriverErrorInfo),
    |     ---------------------------------- the variant `UnknownCommand` contains at least 176 bytes
186 |     #[error("Unknown error: {0}")]
187 |     UnknownError(WebDriverErrorInfo),
    |     -------------------------------- the variant `UnknownError` contains at least 176 bytes
188 |     #[error("Unknown method: {0}")]
189 |     UnknownMethod(WebDriverErrorInfo),
    |     --------------------------------- the variant `UnknownMethod` contains at least 176 bytes
190 |     #[error("Unsupport operation: {0}")]
191 |     UnsupportedOperation(WebDriverErrorInfo),
    |     ---------------------------------------- the variant `UnsupportedOperation` contains at least 176 bytes
    |
    = help: try reducing the size of `error::WebDriverError`, for example by boxing large elements or replacing it with `Box<error::WebDriverError>`
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err

Check warning on line 257 in thirtyfour/src/common/capabilities/firefox.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

the `Err`-variant returned from this function is very large

warning: the `Err`-variant returned from this function is very large
   --> thirtyfour/src/common/capabilities/firefox.rs:257:41
    |
257 |     pub fn unset_log_file(&mut self) -> WebDriverResult<()> {
    |                                         ^^^^^^^^^^^^^^^^^^^
    |
   ::: thirtyfour/src/error.rs:137:5
    |
137 |     NotInSpec(WebDriverErrorInfo),
    |     ----------------------------- the largest variant contains at least 176 bytes
138 |     #[error("The click event was intercepted by another element: {0}")]
139 |     ElementClickIntercepted(WebDriverErrorInfo),
    |     ------------------------------------------- the variant `ElementClickIntercepted` contains at least 176 bytes
140 |     #[error("The element is not interactable: {0}")]
141 |     ElementNotInteractable(WebDriverErrorInfo),
    |     ------------------------------------------ the variant `ElementNotInteractable` contains at least 176 bytes
142 |     #[error("The certificate is insecure: {0}")]
143 |     InsecureCertificate(WebDriverErrorInfo),
    |     --------------------------------------- the variant `InsecureCertificate` contains at least 176 bytes
144 |     #[error("An argument passed to the WebDriver server was invalid: {0}")]
145 |     InvalidArgument(WebDriverErrorInfo),
    |     ----------------------------------- the variant `InvalidArgument` contains at least 176 bytes
...
149 |     InvalidCookieDomain(WebDriverErrorInfo),
    |     --------------------------------------- the variant `InvalidCookieDomain` contains at least 176 bytes
150 |     #[error("The element is in an invalid state: {0}")]
151 |     InvalidElementState(WebDriverErrorInfo),
    |     --------------------------------------- the variant `InvalidElementState` contains at least 176 bytes
152 |     #[error("The specified element selector is invalid: {0}")]
153 |     InvalidSelector(WebDriverErrorInfo),
    |     ----------------------------------- the variant `InvalidSelector` contains at least 176 bytes
154 |     #[error("The WebDriver session id is invalid: {0}")]
155 |     InvalidSessionId(WebDriverErrorInfo),
    |     ------------------------------------ the variant `InvalidSessionId` contains at least 176 bytes
156 |     #[error("The Javascript code returned an error: {0}")]
157 |     JavascriptError(WebDriverErrorInfo),
    |     ----------------------------------- the variant `JavascriptError` contains at least 176 bytes
158 |     #[error("Unable to scroll the element into the viewport: {0}")]
159 |     MoveTargetOutOfBounds(WebDriverErrorInfo),
    |     ----------------------------------------- the variant `MoveTargetOutOfBounds` contains at least 176 bytes
160 |     #[error("Alert not found: {0}")]
161 |     NoSuchAlert(WebDriverErrorInfo),
    |     ------------------------------- the variant `NoSuchAlert` contains at least 176 bytes
162 |     #[error("Cookie not found: {0}")]
163 |     NoSuchCookie(WebDriverErrorInfo),
    |     -------------------------------- the variant `NoSuchCookie` contains at least 176 bytes
164 |     #[error("Element not found: {0}")]
165 |     NoSuchElement(WebDriverErrorInfo),
    |     --------------------------------- the variant `NoSuchElement` contains at least 176 bytes
166 |     #[error("Frame not found: {0}")]
167 |     NoSuchFrame(WebDriverErrorInfo),
    |     ------------------------------- the variant `NoSuchFrame` contains at least 176 bytes
168 |     #[error("Window not found: {0}")]
169 |     NoSuchWindow(WebDriverErrorInfo),
    |     -------------------------------- the variant `NoSuchWindow` contains at least 176 bytes
170 |     #[error("The Javascript code did not complete within the script timeout (see WebDriver::set_script_timeout()): {0}")]
171 |     ScriptTimeout(WebDriverErrorInfo),
    |     --------------------------------- the variant `ScriptTimeout` contains at least 176 bytes
172 |     #[error("Unable to create WebDriver session: {0}")]
173 |     SessionNotCreated(WebDriverErrorInfo),
    |     ------------------------------------- the variant `SessionNotCreated` contains at least 176 bytes
174 |     #[error("Element is stale: {0}")]
175 |     StaleElementReference(WebDriverErrorInfo),
    |     ----------------------------------------- the variant `StaleElementReference` contains at least 176 bytes
176 |     #[error("Operation timed out: {0}")]
177 |     WebDriverTimeout(WebDriverErrorInfo),
    |     ------------------------------------ the variant `WebDriverTimeout` contains at least 176 bytes
178 |     #[error("Unable to set cookie: {0}")]
179 |     UnableToSetCookie(WebDriverErrorInfo),
    |     ------------------------------------- the variant `UnableToSetCookie` contains at least 176 bytes
180 |     #[error("Unable to capture screenshot: {0}")]
181 |     UnableToCaptureScreen(WebDriverErrorInfo),
    |     ----------------------------------------- the variant `UnableToCaptureScreen` contains at least 176 bytes
182 |     #[error("An unexpected alert is currently open: {0}")]
183 |     UnexpectedAlertOpen(WebDriverErrorInfo),
    |     --------------------------------------- the variant `UnexpectedAlertOpen` contains at least 176 bytes
184 |     #[error("Unknown command: {0}")]
185 |     UnknownCommand(WebDriverErrorInfo),
    |     ---------------------------------- the variant `UnknownCommand` contains at least 176 bytes
186 |     #[error("Unknown error: {0}")]
187 |     UnknownError(WebDriverErrorInfo),
    |     -------------------------------- the variant `UnknownError` contains at least 176 bytes
188 |     #[error("Unknown method: {0}")]
189 |     UnknownMethod(WebDriverErrorInfo),
    |     --------------------------------- the variant `UnknownMethod` contains at least 176 bytes
190 |     #[error("Unsupport operation: {0}")]
191 |     UnsupportedOperation(WebDriverErrorInfo),
    |     ---------------------------------------- the variant `UnsupportedOperation` contains at least 176 bytes
    |
    = help: try reducing the size of `error::WebDriverError`, for example by boxing large elements or replacing it with `Box<error::WebDriverError>`
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err

Check warning on line 252 in thirtyfour/src/common/capabilities/firefox.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

the `Err`-variant returned from this function is very large

warning: the `Err`-variant returned from this function is very large
   --> thirtyfour/src/common/capabilities/firefox.rs:252:54
    |
252 |     pub fn set_log_file(&mut self, value: String) -> WebDriverResult<()> {
    |                                                      ^^^^^^^^^^^^^^^^^^^
    |
   ::: thirtyfour/src/error.rs:137:5
    |
137 |     NotInSpec(WebDriverErrorInfo),
    |     ----------------------------- the largest variant contains at least 176 bytes
138 |     #[error("The click event was intercepted by another element: {0}")]
139 |     ElementClickIntercepted(WebDriverErrorInfo),
    |     ------------------------------------------- the variant `ElementClickIntercepted` contains at least 176 bytes
140 |     #[error("The element is not interactable: {0}")]
141 |     ElementNotInteractable(WebDriverErrorInfo),
    |     ------------------------------------------ the variant `ElementNotInteractable` contains at least 176 bytes
142 |     #[error("The certificate is insecure: {0}")]
143 |     InsecureCertificate(WebDriverErrorInfo),
    |     --------------------------------------- the variant `InsecureCertificate` contains at least 176 bytes
144 |     #[error("An argument passed to the WebDriver server was invalid: {0}")]
145 |     InvalidArgument(WebDriverErrorInfo),
    |     ----------------------------------- the variant `InvalidArgument` contains at least 176 bytes
...
149 |     InvalidCookieDomain(WebDriverErrorInfo),
    |     --------------------------------------- the variant `InvalidCookieDomain` contains at least 176 bytes
150 |     #[error("The element is in an invalid state: {0}")]
151 |     InvalidElementState(WebDriverErrorInfo),
    |     --------------------------------------- the variant `InvalidElementState` contains at least 176 bytes
152 |     #[error("The specified element selector is invalid: {0}")]
153 |     InvalidSelector(WebDriverErrorInfo),
    |     ----------------------------------- the variant `InvalidSelector` contains at least 176 bytes
154 |     #[error("The WebDriver session id is invalid: {0}")]
155 |     InvalidSessionId(WebDriverErrorInfo),
    |     ------------------------------------ the variant `InvalidSessionId` contains at least 176 bytes
156 |     #[error("The Javascript code returned an error: {0}")]
157 |     JavascriptError(WebDriverErrorInfo),
    |     ----------------------------------- the variant `JavascriptError` contains at least 176 bytes
158 |     #[error("Unable to scroll the element into the viewport: {0}")]
159 |     MoveTargetOutOfBounds(WebDriverErrorInfo),
    |     ----------------------------------------- the variant `MoveTargetOutOfBounds` contains at least 176 bytes
160 |     #[error("Alert not found: {0}")]
161 |     NoSuchAlert(WebDriverErrorInfo),
    |     ------------------------------- the variant `NoSuchAlert` contains at least 176 bytes
162 |     #[error("Cookie not found: {0}")]
163 |     NoSuchCookie(WebDriverErrorInfo),
    |     -------------------------------- the variant `NoSuchCookie` contains at least 176 bytes
164 |     #[error("Element not found: {0}")]
165 |     NoSuchElement(WebDriverErrorInfo),
    |     --------------------------------- the variant `NoSuchElement` contains at least 176 bytes
166 |     #[error("Frame not found: {0}")]
167 |     NoSuchFrame(WebDriverErrorInfo),
    |     ------------------------------- the variant `NoSuchFrame` contains at least 176 bytes
168 |     #[error("Window not found: {0}")]
169 |     NoSuchWindow(WebDriverErrorInfo),
    |     -------------------------------- the variant `NoSuchWindow` contains at least 176 bytes
170 |     #[error("The Javascript code did not complete within the script timeout (see WebDriver::set_script_timeout()): {0}")]
171 |     ScriptTimeout(WebDriverErrorInfo),
    |     --------------------------------- the variant `ScriptTimeout` contains at least 176 bytes
172 |     #[error("Unable to create WebDriver session: {0}")]
173 |     SessionNotCreated(WebDriverErrorInfo),
    |     ------------------------------------- the variant `SessionNotCreated` contains at least 176 bytes
174 |     #[error("Element is stale: {0}")]
175 |     StaleElementReference(WebDriverErrorInfo),
    |     ----------------------------------------- the variant `StaleElementReference` contains at least 176 bytes
176 |     #[error("Operation timed out: {0}")]
177 |     WebDriverTimeout(WebDriverErrorInfo),
    |     ------------------------------------ the variant `WebDriverTimeout` contains at least 176 bytes
178 |     #[error("Unable to set cookie: {0}")]
179 |     UnableToSetCookie(WebDriverErrorInfo),
    |     ------------------------------------- the variant `UnableToSetCookie` contains at least 176 bytes
180 |     #[error("Unable to capture screenshot: {0}")]
181 |     UnableToCaptureScreen(WebDriverErrorInfo),
    |     ----------------------------------------- the variant `UnableToCaptureScreen` contains at least 176 bytes
182 |     #[error("An unexpected alert is currently open: {0}")]
183 |     UnexpectedAlertOpen(WebDriverErrorInfo),
    |     --------------------------------------- the variant `UnexpectedAlertOpen` contains at least 176 bytes
184 |     #[error("Unknown command: {0}")]
185 |     UnknownCommand(WebDriverErrorInfo),
    |     ---------------------------------- the variant `UnknownCommand` contains at least 176 bytes
186 |     #[error("Unknown error: {0}")]
187 |     UnknownError(WebDriverErrorInfo),
    |     -------------------------------- the variant `UnknownError` contains at least 176 bytes
188 |     #[error("Unknown method: {0}")]
189 |     UnknownMethod(WebDriverErrorInfo),
    |     --------------------------------- the variant `UnknownMethod` contains at least 176 bytes
190 |     #[error("Unsupport operation: {0}")]
191 |     UnsupportedOperation(WebDriverErrorInfo),
    |     ---------------------------------------- the variant `UnsupportedOperation` contains at least 176 bytes
    |
    = help: try reducing the size of `error::WebDriverError`, for example by boxing large elements or replacing it with `Box<error::WebDriverError>`
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err