Skip to content

Commit

Permalink
Fix fallout
Browse files Browse the repository at this point in the history
  • Loading branch information
Mark-Simulacrum committed Aug 25, 2024
1 parent 045b553 commit 8ce2f5d
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/report/markdown.rs
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ fn write_report<W: ReportWriter>(
.into_iter()
.map(|krate| {
// done here to avoid cloning krate
let deps = tree.remove(&krate.krate).unwrap_or_default();
let deps = tree.shift_remove(&krate.krate).unwrap_or_default();
(krate, deps)
})
.collect::<IndexMap<_, _>>();
Expand Down
2 changes: 1 addition & 1 deletion src/server/auth.rs
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ impl ACL {
Ok(())
}

pub fn allowed(&self, username: &str, user_id: usize) -> Fallible<bool> {
pub fn allowed(&self, username: &str, user_id: u64) -> Fallible<bool> {
if self.rust_teams {
let url = format!("{}/permissions/crater.json", team_data::BASE_URL);
let members: team_data::Permission = crate::utils::http::get_sync(&url)?.json()?;
Expand Down
2 changes: 1 addition & 1 deletion src/server/github.rs
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ pub struct Error {

#[derive(Deserialize)]
pub struct User {
pub id: usize,
pub id: u64,
pub login: String,
}

Expand Down
2 changes: 1 addition & 1 deletion src/server/routes/webhooks/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ fn process_webhook(
fn process_command(
host: &str,
sender: &str,
sender_id: usize,
sender_id: u64,
body: &str,
repo: &Repository,
issue: &Issue,
Expand Down

0 comments on commit 8ce2f5d

Please sign in to comment.