pub_just/
unstable_feature.rs1use super::*;
2
3#[derive(Copy, Clone, Debug, PartialEq, Ord, Eq, PartialOrd)]
4pub enum UnstableFeature {
5 FormatSubcommand,
6 LogicalOperators,
7 ScriptAttribute,
8 ScriptInterpreterSetting,
9}
10
11impl Display for UnstableFeature {
12 fn fmt(&self, f: &mut Formatter) -> fmt::Result {
13 match self {
14 Self::FormatSubcommand => write!(f, "The `--fmt` command is currently unstable."),
15 Self::LogicalOperators => write!(
16 f,
17 "The logical operators `&&` and `||` are currently unstable."
18 ),
19 Self::ScriptAttribute => write!(f, "The `[script]` attribute is currently unstable."),
20 Self::ScriptInterpreterSetting => {
21 write!(f, "The `script-interpreter` setting is currently unstable.")
22 }
23 }
24 }
25}