Skip to content

Commit

Permalink
issue-154: remove unused types and fields
Browse files Browse the repository at this point in the history
  • Loading branch information
lowitea committed Oct 8, 2023
1 parent d2528b9 commit a7449d0
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 2,860 deletions.
8 changes: 4 additions & 4 deletions src/gitlab/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -157,15 +157,15 @@ impl Client {
pub async fn make_project(
&self,
slug: String,
group_id: types::GroupId,
group_id: u32,
info: &types::Project,
) -> reqwest::Result<types::Project> {
#[derive(Serialize)]
struct MakeProjectRequest {
name: String,
description: String,
path: String,
namespace_id: types::GroupId,
namespace_id: u32,
}

let name = info.name.clone();
Expand Down Expand Up @@ -224,13 +224,13 @@ impl Client {
pub async fn make_subgroup(
&self,
name: String,
parent_id: Option<types::GroupId>,
parent_id: Option<u32>,
) -> reqwest::Result<types::Group> {
#[derive(Serialize)]
struct MakeGroupRequest {
name: String,
path: String,
parent_id: Option<types::GroupId>,
parent_id: Option<u32>,
}

let path = name.clone();
Expand Down
31 changes: 0 additions & 31 deletions src/gitlab/macros.rs

This file was deleted.

2 changes: 0 additions & 2 deletions src/gitlab/mod.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
pub use client::Client;

pub mod client;
mod macros;

pub mod types;
Loading

0 comments on commit a7449d0

Please sign in to comment.