@@ -9,30 +9,29 @@ import * as selectors from './selectors';
9
9
10
10
import styles from './Notifications.module.css' ;
11
11
12
- const SURVEY_URL = 'https://blog .rust-lang.org/2020/09/10/survey-launch.html ' ;
12
+ const EDITION_URL = 'https://doc .rust-lang.org/edition-guide/ ' ;
13
13
14
14
const Notifications : React . SFC = ( ) => {
15
15
return (
16
16
< Portal >
17
17
< div className = { styles . container } >
18
- < Rust2020SurveyNotification />
18
+ < Rust2021IsDefaultNotification />
19
19
</ div >
20
20
</ Portal >
21
21
) ;
22
22
} ;
23
23
24
- const Rust2020SurveyNotification : React . SFC = ( ) => {
25
- const showRust2020Survey = useSelector ( selectors . showRustSurvey2020Selector ) ;
24
+ const Rust2021IsDefaultNotification : React . SFC = ( ) => {
25
+ const showRust2021IsDefault = useSelector ( selectors . showRust2021IsDefaultSelector ) ;
26
26
27
27
const dispatch = useDispatch ( ) ;
28
- const seenRustSurvey2020 = useCallback ( ( ) => dispatch ( actions . seenRustSurvey2020 ( ) ) , [ dispatch ] ) ;
29
-
30
- return showRust2020Survey && (
31
- < Notification onClose = { seenRustSurvey2020 } >
32
- We want to know your opinions! Your responses to
33
- the < a href = { SURVEY_URL } > 2020 State of Rust Survey</ a > will
34
- help the project understand its strengths and weaknesses
35
- and establish development priorities for the future!
28
+ const seenRust2021IsDefault = useCallback ( ( ) => dispatch ( actions . seenRust2021IsDefault ( ) ) , [ dispatch ] ) ;
29
+
30
+ return showRust2021IsDefault && (
31
+ < Notification onClose = { seenRust2021IsDefault } >
32
+ As of Rust 1.56, the default edition of Rust is now Rust
33
+ 2021. Learn more about editions in the < a href = { EDITION_URL } > Edition Guide</ a > .
34
+ To specify which edition to use, use the advanced compilation options menu.
36
35
</ Notification >
37
36
) ;
38
37
} ;
0 commit comments