Skip to content

Commit 167fdcb

Browse files
committed
fixup
1 parent 69e801f commit 167fdcb

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

parser/src/lib.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,7 @@ pub mod command;
22
pub mod error;
33
mod ignore_block;
44
mod mentions;
5-
// XXX: is this necessary?
6-
pub mod token;
5+
mod token;
76

87
pub use ignore_block::replace_all_outside_ignore_blocks;
98
pub use mentions::get_mentions;

src/handlers/relabel.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ pub(super) async fn handle_command(
3636

3737
// Check label authorization for the current user
3838
for delta in &new_input.0 {
39-
let name = delta.label().as_str();
39+
let name = delta.label() as &str;
4040
let err = match check_filter(name, config, is_member(&event.user(), &ctx.team).await) {
4141
Ok(CheckFilterResult::Allow) => None,
4242
Ok(CheckFilterResult::Deny) => Some(format!(

0 commit comments

Comments
 (0)