Skip to content

Commit cadc84a

Browse files
committed
Method should not be borrowed
1 parent a4053c5 commit cadc84a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/conduit.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ pub enum Host<'a> {
1818
}
1919

2020
#[deriving(PartialEq, Hash, Eq, Show, Clone)]
21-
pub enum Method<'a> {
21+
pub enum Method {
2222
Get,
2323
Post,
2424
Put,
@@ -33,7 +33,7 @@ pub enum Method<'a> {
3333
Purge,
3434

3535
// WebDAV, Subversion, UPNP
36-
Other(&'a str)
36+
Other(&'static str)
3737
}
3838

3939
/// A Dictionary for extensions provided by the server or middleware
@@ -47,7 +47,7 @@ pub trait Request {
4747
fn conduit_version(&self) -> semver::Version;
4848

4949
/// The request method, such as GET, POST, PUT, DELETE or PATCH
50-
fn method<'a>(&'a self) -> Method<'a>;
50+
fn method(&self) -> Method;
5151

5252
/// The scheme part of the request URL
5353
fn scheme(&self) -> Scheme;

0 commit comments

Comments
 (0)