1
0
Fork 0

two small BTreeMap-related changes

import `BTreeMap` instead of qualified path
use `BTreeMap` instead of `serde_json::Map`
This commit is contained in:
Cyborus 2024-03-20 13:11:47 -04:00
parent cad6890128
commit 9e3279e7ed
No known key found for this signature in database
5 changed files with 17 additions and 13 deletions

View file

@ -1,5 +1,6 @@
use super::structs::*;
use crate::ForgejoError;
use std::collections::BTreeMap;
impl crate::Forgejo {
/// Returns the Person actor for a user
@ -4119,7 +4120,7 @@ impl crate::Forgejo {
&self,
owner: &str,
repo: &str,
) -> Result<std::collections::BTreeMap<String, u64>, ForgejoError> {
) -> Result<BTreeMap<String, u64>, ForgejoError> {
let request = self
.get(&format!("repos/{owner}/{repo}/languages"))
.build()?;