fix(rustup): Remove uses of the obsolete &a[] syntax
This commit is contained in:
committed by
Sean McArthur
parent
234fcdc3a2
commit
039e984f68
@@ -21,7 +21,7 @@ macro_rules! try_return(
|
||||
|
||||
fn echo(mut req: Request, mut res: Response) {
|
||||
match req.uri {
|
||||
AbsolutePath(ref path) => match (&req.method, &path[]) {
|
||||
AbsolutePath(ref path) => match (&req.method, &path[..]) {
|
||||
(&Get, "/") | (&Get, "/echo") => {
|
||||
let out = b"Try POST /echo";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user