File tree Expand file tree Collapse file tree 1 file changed +2
-9
lines changed Expand file tree Collapse file tree 1 file changed +2
-9
lines changed Original file line number Diff line number Diff line change @@ -165,16 +165,9 @@ export const changeChannel = (channel: Channel) =>
165165export const changeMode = ( mode : Mode ) =>
166166 createAction ( ActionType . ChangeMode , { mode } ) ;
167167
168- const changeEditionRaw = ( edition : Edition ) =>
168+ export const changeEdition = ( edition : Edition ) =>
169169 createAction ( ActionType . ChangeEdition , { edition } ) ;
170170
171- export const changeEdition = ( edition : Edition ) : ThunkAction => dispatch => {
172- if ( edition == Edition . Rust2021 ) {
173- dispatch ( changeChannel ( Channel . Nightly ) ) ;
174- }
175- dispatch ( changeEditionRaw ( edition ) ) ;
176- }
177-
178171export const changeBacktrace = ( backtrace : Backtrace ) =>
179172 createAction ( ActionType . ChangeBacktrace , { backtrace } ) ;
180173
@@ -814,7 +807,7 @@ export type Action =
814807 | ReturnType < typeof changeBacktrace >
815808 | ReturnType < typeof changeChannel >
816809 | ReturnType < typeof changeDemangleAssembly >
817- | ReturnType < typeof changeEditionRaw >
810+ | ReturnType < typeof changeEdition >
818811 | ReturnType < typeof changeEditor >
819812 | ReturnType < typeof changeFocus >
820813 | ReturnType < typeof changeKeybinding >
You can’t perform that action at this time.
0 commit comments