Commit 2c855ba8 authored by Min Kim's avatar Min Kim
Browse files

Remove an unused field from MergeRequest

A response to "GET /merge_requests" does not have "user".
parent 4431b775
......@@ -1694,8 +1694,6 @@ pub struct MergeRequest {
pub should_remove_source_branch: Option<bool>,
/// Whether the merge request should be deleted or not (set by the author).
pub force_remove_source_branch: Option<bool>,
/// Information about current user's access to the merge request.
pub user: MergeRequestUser,
/// The URL of the merge request.
pub web_url: String,
}
......@@ -1789,8 +1787,6 @@ pub struct MergeRequestChanges {
pub should_remove_source_branch: Option<bool>,
/// Whether the merge request should be deleted or not (set by the author).
pub force_remove_source_branch: Option<bool>,
/// Information about current user's access to the merge request.
pub user: MergeRequestUser,
/// The URL of the merge request.
pub web_url: String,
pub changes: Vec<RepoDiff>,
......@@ -1840,7 +1836,6 @@ impl From<MergeRequestChanges> for MergeRequest {
discussion_locked: mr.discussion_locked,
should_remove_source_branch: mr.should_remove_source_branch,
force_remove_source_branch: mr.force_remove_source_branch,
user: mr.user,
web_url: mr.web_url,
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment