refactor: as_code -> code
This commit is contained in:
parent
089c9dfd65
commit
41ddc96b77
|
@ -88,7 +88,7 @@ impl Job {
|
||||||
/// Returns the short code of this job.
|
/// Returns the short code of this job.
|
||||||
///
|
///
|
||||||
/// Short codes are fully capitalized (e.g. "BRD", "BLM").
|
/// Short codes are fully capitalized (e.g. "BRD", "BLM").
|
||||||
pub fn as_code(&self) -> &'static str {
|
pub fn code(&self) -> &'static str {
|
||||||
match *self {
|
match *self {
|
||||||
Job::Bard => "BRD",
|
Job::Bard => "BRD",
|
||||||
Job::BlackMage => "BLM",
|
Job::BlackMage => "BLM",
|
||||||
|
|
|
@ -61,7 +61,7 @@ impl NonCombatJob {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn as_code(&self) -> &'static str {
|
pub fn code(&self) -> &'static str {
|
||||||
match *self {
|
match *self {
|
||||||
NonCombatJob::Botanist => "BTN",
|
NonCombatJob::Botanist => "BTN",
|
||||||
NonCombatJob::Fisher => "FSH",
|
NonCombatJob::Fisher => "FSH",
|
||||||
|
|
Loading…
Reference in New Issue