Skip to content

Commit

Permalink
refactor: impl shorthand struct initialization
Browse files Browse the repository at this point in the history
  • Loading branch information
JacksonVirgo committed Aug 5, 2024
1 parent db6b440 commit b9f1931
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/url.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ pub enum URLType {
impl ForumURL {
pub fn new(thread_id: String) -> ForumURL {
ForumURL {
thread_id: thread_id,
thread_id,
ppp: 200,
start: 0,
}
Expand Down

0 comments on commit b9f1931

Please sign in to comment.