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

Commit

Permalink
Fix type ascription in rls-vfs
Browse files Browse the repository at this point in the history
  • Loading branch information
Xanewok committed Feb 24, 2019
1 parent 6da795c commit 2978231
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions rls-vfs/src/test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
);
Expand All @@ -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| {
Expand Down

0 comments on commit 2978231

Please sign in to comment.