Skip to content

Commit

Permalink
remove clone on ref
Browse files Browse the repository at this point in the history
  • Loading branch information
ezrizhu committed May 21, 2024
1 parent 69fdf90 commit 000e816
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/feed/news_atom.rs
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ pub async fn get(State(state): State<super::SiteState>) -> Response {
news.remove(0);

let (date_str, title) = news.split_once(": ").unwrap();
let content = title.clone();
let content = title;
// link (id), has to be unique
let link = format!("{}#{}", "https://ezrizhu.com/news", (news_len - count).to_string());
count+=1;
Expand Down
2 changes: 1 addition & 1 deletion src/feed/news_rss.rs
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ pub async fn get(State(state): State<super::SiteState>) -> Response {
news.remove(0);

let (date_str, title) = news.split_once(": ").unwrap();
let content = title.clone();
let content = title;
// link (id) has to be unique
let link = format!("{}#{}", "https://ezrizhu.com/news", (news_len - count).to_string());
count+=1;
Expand Down

0 comments on commit 000e816

Please sign in to comment.