Skip to content

Commit

Permalink
Remove inline hack
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
jonhoo committed Sep 1, 2017
1 parent 339ecab commit 1e5ad1e
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -274,8 +274,6 @@ pub struct Form {
}

impl Client {
// inline to work around https:/rust-lang/rust/issues/41297#issuecomment-312197433
#[inline]
fn init(
mut self,
params: webdriver::command::NewSessionParameters,
Expand Down Expand Up @@ -443,7 +441,6 @@ impl Client {
)
}

#[inline]
fn dup(&self) -> Self {
Client(self.0.clone())
}
Expand All @@ -456,7 +453,6 @@ impl Client {
/// Helper for determining what URL endpoint to use for various requests.
///
/// This mapping is essentially that of https://www.w3.org/TR/webdriver/#list-of-endpoints.
#[inline]
fn endpoint_for(&self, cmd: &Cmd) -> Result<url::Url, url::ParseError> {
if let WebDriverCommand::NewSession(..) = *cmd {
return self.0.wdb.join("/session");
Expand Down Expand Up @@ -508,7 +504,6 @@ impl Client {
/// arguments (if any) into the body.
///
/// [the spec]: https://www.w3.org/TR/webdriver/#list-of-endpoints
#[inline]
fn issue_wd_cmd(
self,
cmd: WebDriverCommand<webdriver::command::VoidWebDriverExtensionCommand>,
Expand Down Expand Up @@ -779,7 +774,6 @@ impl Client {
) as Box<Future<Item = _, Error = _>>
}

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

// helpers

#[inline]
fn by(
&self,
locator: webdriver::command::LocatorParameters,
Expand All @@ -1104,7 +1097,6 @@ impl Client {
}

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

#[inline]
fn fixup_elements(&self, args: &mut [Json]) {
if self.0.legacy {
for arg in args {
Expand Down

0 comments on commit 1e5ad1e

Please sign in to comment.