update inbox list
This commit is contained in:
16
vendor/scrivo/highlight.php/test/detect/rust/default.txt
vendored
Normal file
16
vendor/scrivo/highlight.php/test/detect/rust/default.txt
vendored
Normal file
@@ -0,0 +1,16 @@
|
||||
#[derive(Debug)]
|
||||
pub enum State {
|
||||
Start,
|
||||
Transient,
|
||||
Closed,
|
||||
}
|
||||
|
||||
impl From<&'a str> for State {
|
||||
fn from(s: &'a str) -> Self {
|
||||
match s {
|
||||
"start" => State::Start,
|
||||
"closed" => State::Closed,
|
||||
_ => unreachable!(),
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user