Skip to content

Commit 0c6d5f5

Browse files
stepanchegfacebook-github-bot
authored andcommitted
Remove feature io_error_more from bin
Summary: `read_to_string` does not return `NotADirectory`. Reviewed By: ndmitchell Differential Revision: D41092312 fbshipit-source-id: 0329db949cb38c3751ad72fe9ba935d61fe604dd
1 parent bb44220 commit 0c6d5f5

File tree

2 files changed

+1
-7
lines changed

2 files changed

+1
-7
lines changed

starlark/bin/eval.rs

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -312,12 +312,7 @@ impl LspContext for Context {
312312
LspUrl::File(path) => match path.is_absolute() {
313313
true => match fs::read_to_string(path) {
314314
Ok(contents) => Ok(Some(contents)),
315-
Err(e)
316-
if e.kind() == io::ErrorKind::NotFound
317-
|| e.kind() == io::ErrorKind::NotADirectory =>
318-
{
319-
Ok(None)
320-
}
315+
Err(e) if e.kind() == io::ErrorKind::NotFound => Ok(None),
321316
Err(e) => Err(e.into()),
322317
},
323318
false => Err(ContextError::NotAbsolute(uri.clone()).into()),

starlark/bin/main.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717

1818
// Features we use
1919
#![feature(box_syntax)]
20-
#![feature(io_error_more)]
2120
//
2221
// Plugins
2322
#![cfg_attr(feature = "gazebo_lint", feature(plugin))]

0 commit comments

Comments
 (0)