Skip to content
This repository was archived by the owner on Dec 29, 2022. It is now read-only.

Commit f60fb64

Browse files
committed
Convert rls-vfs to 2018 edition
1 parent 463b0bd commit f60fb64

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

rls-vfs/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
[package]
22
name = "rls-vfs"
33
version = "0.8.0"
4+
edition = "2018"
45
authors = ["Nick Cameron <[email protected]>"]
56
description = "Virtual File System for the RLS"
67
license = "Apache-2.0/MIT"

rls-vfs/src/lib.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#![warn(rust_2018_idioms)]
2+
13
extern crate rls_span as span;
24
#[macro_use]
35
extern crate log;
@@ -150,7 +152,7 @@ impl Into<String> for Error {
150152
}
151153

152154
impl fmt::Display for Error {
153-
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
155+
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
154156
match *self {
155157
Error::OutOfSync(ref path_buf) => {
156158
write!(f, "file {} out of sync with filesystem", path_buf.display())

0 commit comments

Comments
 (0)