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) =>
165
165
export const changeMode = ( mode : Mode ) =>
166
166
createAction ( ActionType . ChangeMode , { mode } ) ;
167
167
168
- const changeEditionRaw = ( edition : Edition ) =>
168
+ export const changeEdition = ( edition : Edition ) =>
169
169
createAction ( ActionType . ChangeEdition , { edition } ) ;
170
170
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
-
178
171
export const changeBacktrace = ( backtrace : Backtrace ) =>
179
172
createAction ( ActionType . ChangeBacktrace , { backtrace } ) ;
180
173
@@ -814,7 +807,7 @@ export type Action =
814
807
| ReturnType < typeof changeBacktrace >
815
808
| ReturnType < typeof changeChannel >
816
809
| ReturnType < typeof changeDemangleAssembly >
817
- | ReturnType < typeof changeEditionRaw >
810
+ | ReturnType < typeof changeEdition >
818
811
| ReturnType < typeof changeEditor >
819
812
| ReturnType < typeof changeFocus >
820
813
| ReturnType < typeof changeKeybinding >
You can’t perform that action at this time.
0 commit comments