61 lines
5.7 KiB
Plaintext
61 lines
5.7 KiB
Plaintext
cargo : Checking event_backtest_engine v0.1.0 (C:\Users\donpat1to\Repos\WebScraper)
|
|
At line:1 char:1
|
|
+ cargo check 2>&1 > check.txt; Get-Content check.txt | Where-Object { ...
|
|
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
+ CategoryInfo : NotSpecified: ( Checking ev...pos\WebScraper):String) [], RemoteException
|
|
+ FullyQualifiedErrorId : NativeCommandError
|
|
|
|
warning: variable does not need to be mutable
|
|
--> src\scraper\webdriver.rs:259:17
|
|
|
|
|
259 | let mut std_cmd = fb.create_bound_command(
|
|
| ----^^^^^^^
|
|
| |
|
|
| help: remove this `mut`
|
|
|
|
|
= note: `#[warn(unused_mut)]` on by default
|
|
|
|
error[E0599]: no method named `detect_external_ip_via_browser` found for mutable reference `&mut VpnInstance` in the current scope
|
|
--> src\scraper\vpn_manager.rs:106:40
|
|
|
|
|
106 | if let Ok(Some(ip)) = self.detect_external_ip_via_browser().await {
|
|
| -----^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^--
|
|
| | |
|
|
| | this is an associated function, not a method
|
|
| help: use associated function syntax instead: `VpnInstance::detect_external_ip_via_browser()`
|
|
|
|
|
= note: found the following associated functions; to be used as methods, functions must have a `self` parameter
|
|
note: the candidate is defined in an impl for the type `VpnInstance`
|
|
--> src\scraper\vpn_manager.rs:143:5
|
|
|
|
|
143 | pub async fn detect_external_ip_via_browser(client: &fantoccini::Client) -> Result<Option<String>> {
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
error[E0599]: no method named `detect_external_ip` found for mutable reference `&mut VpnInstance` in the current scope
|
|
--> src\scraper\vpn_manager.rs:172:20
|
|
|
|
|
172 | match self.detect_external_ip().await {
|
|
| ^^^^^^^^^^^^^^^^^^
|
|
|
|
|
help: there is a method `external_ip` with a similar name
|
|
|
|
|
172 - match self.detect_external_ip().await {
|
|
172 + match self.external_ip().await {
|
|
|
|
|
|
|
error[E0599]: no method named `detect_external_ip` found for mutable reference `&mut VpnInstance` in the current scope
|
|
--> src\scraper\vpn_manager.rs:192:20
|
|
|
|
|
192 | match self.detect_external_ip().await {
|
|
| ^^^^^^^^^^^^^^^^^^
|
|
|
|
|
help: there is a method `external_ip` with a similar name
|
|
|
|
|
192 - match self.detect_external_ip().await {
|
|
192 + match self.external_ip().await {
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0599`.
|
|
warning: `event_backtest_engine` (lib) generated 1 warning
|
|
error: could not compile `event_backtest_engine` (lib) due to 3 previous errors; 1 warning emitted
|