Skip to content

Commit

Permalink
♻️ Apply #[inline] attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
ChanTsune committed Oct 29, 2024
1 parent 885c69b commit 99a6579
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cli/src/chunk/acl.rs
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,7 @@ const PERMISSION_NAME_MAP: &[(Permission, &[&str])] = &[
];

impl Display for Ace {
#[inline]
fn fmt(&self, f: &mut Formatter<'_>) -> fmt::Result {
let mut flags = Vec::new();
for (f, names) in FLAG_NAME_MAP {
Expand Down Expand Up @@ -205,6 +206,7 @@ impl Display for Ace {
impl FromStr for Ace {
type Err = ParseAceError;

#[inline]
fn from_str(s: &str) -> Result<Self, Self::Err> {
let mut it = s.split(':');
let platform = AcePlatform::from_str(it.next().ok_or(ParseAceError::NotEnoughElement)?)
Expand Down

0 comments on commit 99a6579

Please sign in to comment.