File tree Expand file tree Collapse file tree 3 files changed +7
-7
lines changed Expand file tree Collapse file tree 3 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -164,7 +164,7 @@ impl Config {
164
164
165
165
let parent = file_name. parent ( ) . unwrap ( ) ;
166
166
167
- Config :: from_str ( & contents, parent) . map_err ( |msg| io:: Error :: new ( io :: ErrorKind :: Other , msg ) )
167
+ Config :: from_str ( & contents, parent) . map_err ( io:: Error :: other )
168
168
}
169
169
170
170
pub fn get_library ( & self , name : & str ) -> Option < & LibraryConfig > {
Original file line number Diff line number Diff line change 4
4
//
5
5
// Copyright (c) 2018, Olof Kraigher olof.kraigher@gmail.com
6
6
#![ allow( clippy:: upper_case_acronyms) ]
7
+ #![ allow( clippy:: large_enum_variant) ]
8
+ #![ allow( clippy:: result_large_err) ]
7
9
#![ warn( rust_2018_idioms, future_incompatible) ]
8
10
9
11
#[ macro_use]
Original file line number Diff line number Diff line change @@ -101,12 +101,10 @@ impl VHDLServer {
101
101
102
102
/// Load the workspace root configuration file
103
103
fn load_root_uri_config ( & self ) -> io:: Result < Config > {
104
- let config_file = self . config_file . as_ref ( ) . ok_or_else ( || {
105
- io:: Error :: new (
106
- io:: ErrorKind :: Other ,
107
- "Workspace root configuration file not set" ,
108
- )
109
- } ) ?;
104
+ let config_file = self
105
+ . config_file
106
+ . as_ref ( )
107
+ . ok_or_else ( || io:: Error :: other ( "Workspace root configuration file not set" ) ) ?;
110
108
let config = Config :: read_file_path ( config_file) ?;
111
109
112
110
// Log which file was loaded
You can’t perform that action at this time.
0 commit comments