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

Remove unnecessary #![feature]s #1323

Merged
merged 2 commits into from
Feb 24, 2019
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions rls-vfs/src/test.rs
Original file line number Diff line number Diff line change
@@ -216,7 +216,7 @@ fn test_user_data(with_len: bool) {
assert_eq!(
vfs.with_user_data(&Path::new("foo"), |u| {
assert_eq!(*u.unwrap().1, 43);
Err(Error::BadLocation): Result<(), Error>
Result::Err::<(), Error>(Error::BadLocation)
}),
Err(Error::BadLocation)
);
@@ -237,7 +237,9 @@ fn test_user_data(with_len: bool) {
// Compute (clear) and read data.
vfs.set_user_data(&Path::new("foo"), Some(42)).unwrap();
assert_eq!(
vfs.with_user_data(&Path::new("foo"), |_| Err(Error::NoUserDataForFile): Result<(), Error>),
vfs.with_user_data(&Path::new("foo"), |_| Result::Err::<(), Error>(
Error::NoUserDataForFile
)),
Err(Error::NoUserDataForFile)
);
vfs.with_user_data(&Path::new("foo"), |u| {