@@ -274,8 +274,6 @@ pub struct Form {
274
274
}
275
275
276
276
impl Client {
277
- // inline to work around https://github.com/rust-lang/rust/issues/41297#issuecomment-312197433
278
- #[ inline]
279
277
fn init (
280
278
mut self ,
281
279
params : webdriver:: command:: NewSessionParameters ,
@@ -443,7 +441,6 @@ impl Client {
443
441
)
444
442
}
445
443
446
- #[ inline]
447
444
fn dup ( & self ) -> Self {
448
445
Client ( self . 0 . clone ( ) )
449
446
}
@@ -456,7 +453,6 @@ impl Client {
456
453
/// Helper for determining what URL endpoint to use for various requests.
457
454
///
458
455
/// This mapping is essentially that of https://www.w3.org/TR/webdriver/#list-of-endpoints.
459
- #[ inline]
460
456
fn endpoint_for ( & self , cmd : & Cmd ) -> Result < url:: Url , url:: ParseError > {
461
457
if let WebDriverCommand :: NewSession ( ..) = * cmd {
462
458
return self . 0 . wdb . join ( "/session" ) ;
@@ -508,7 +504,6 @@ impl Client {
508
504
/// arguments (if any) into the body.
509
505
///
510
506
/// [the spec]: https://www.w3.org/TR/webdriver/#list-of-endpoints
511
- #[ inline]
512
507
fn issue_wd_cmd (
513
508
self ,
514
509
cmd : WebDriverCommand < webdriver:: command:: VoidWebDriverExtensionCommand > ,
@@ -779,7 +774,6 @@ impl Client {
779
774
) as Box < Future < Item = _ , Error = _ > >
780
775
}
781
776
782
- #[ inline]
783
777
fn current_url_ (
784
778
& self ,
785
779
) -> impl Future < Item = ( Self , url:: Url ) , Error = error:: CmdError > + ' static {
@@ -1087,7 +1081,6 @@ impl Client {
1087
1081
1088
1082
// helpers
1089
1083
1090
- #[ inline]
1091
1084
fn by (
1092
1085
& self ,
1093
1086
locator : webdriver:: command:: LocatorParameters ,
@@ -1104,7 +1097,6 @@ impl Client {
1104
1097
}
1105
1098
1106
1099
/// Extract the `WebElement` from a `FindElement` or `FindElementElement` command.
1107
- #[ inline]
1108
1100
fn parse_lookup ( & self , res : Json ) -> Result < webdriver:: common:: WebElement , error:: CmdError > {
1109
1101
if !res. is_object ( ) {
1110
1102
return Err ( error:: CmdError :: NotW3C ( res) ) ;
@@ -1135,7 +1127,6 @@ impl Client {
1135
1127
Err ( error:: CmdError :: NotW3C ( Json :: Object ( res) ) )
1136
1128
}
1137
1129
1138
- #[ inline]
1139
1130
fn fixup_elements ( & self , args : & mut [ Json ] ) {
1140
1131
if self . 0 . legacy {
1141
1132
for arg in args {
0 commit comments