Skip to content

Commit 1e5ad1e

Browse files
committed
Remove inline hack
Now that rust-lang/rust#41297 has been closed by rust-lang/rust#43857, this hack is no longer needed to make the code compile.
1 parent 339ecab commit 1e5ad1e

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

src/lib.rs

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -274,8 +274,6 @@ pub struct Form {
274274
}
275275

276276
impl Client {
277-
// inline to work around https://github.com/rust-lang/rust/issues/41297#issuecomment-312197433
278-
#[inline]
279277
fn init(
280278
mut self,
281279
params: webdriver::command::NewSessionParameters,
@@ -443,7 +441,6 @@ impl Client {
443441
)
444442
}
445443

446-
#[inline]
447444
fn dup(&self) -> Self {
448445
Client(self.0.clone())
449446
}
@@ -456,7 +453,6 @@ impl Client {
456453
/// Helper for determining what URL endpoint to use for various requests.
457454
///
458455
/// This mapping is essentially that of https://www.w3.org/TR/webdriver/#list-of-endpoints.
459-
#[inline]
460456
fn endpoint_for(&self, cmd: &Cmd) -> Result<url::Url, url::ParseError> {
461457
if let WebDriverCommand::NewSession(..) = *cmd {
462458
return self.0.wdb.join("/session");
@@ -508,7 +504,6 @@ impl Client {
508504
/// arguments (if any) into the body.
509505
///
510506
/// [the spec]: https://www.w3.org/TR/webdriver/#list-of-endpoints
511-
#[inline]
512507
fn issue_wd_cmd(
513508
self,
514509
cmd: WebDriverCommand<webdriver::command::VoidWebDriverExtensionCommand>,
@@ -779,7 +774,6 @@ impl Client {
779774
) as Box<Future<Item = _, Error = _>>
780775
}
781776

782-
#[inline]
783777
fn current_url_(
784778
&self,
785779
) -> impl Future<Item = (Self, url::Url), Error = error::CmdError> + 'static {
@@ -1087,7 +1081,6 @@ impl Client {
10871081

10881082
// helpers
10891083

1090-
#[inline]
10911084
fn by(
10921085
&self,
10931086
locator: webdriver::command::LocatorParameters,
@@ -1104,7 +1097,6 @@ impl Client {
11041097
}
11051098

11061099
/// Extract the `WebElement` from a `FindElement` or `FindElementElement` command.
1107-
#[inline]
11081100
fn parse_lookup(&self, res: Json) -> Result<webdriver::common::WebElement, error::CmdError> {
11091101
if !res.is_object() {
11101102
return Err(error::CmdError::NotW3C(res));
@@ -1135,7 +1127,6 @@ impl Client {
11351127
Err(error::CmdError::NotW3C(Json::Object(res)))
11361128
}
11371129

1138-
#[inline]
11391130
fn fixup_elements(&self, args: &mut [Json]) {
11401131
if self.0.legacy {
11411132
for arg in args {

0 commit comments

Comments
 (0)