Methods renaming, Api changes.

This commit is contained in:
Jordan Petridis
2017-11-22 06:25:34 +02:00
parent 9bc6df2cba
commit 31328355b1
5 changed files with 16 additions and 13 deletions
+1 -1
View File
@@ -91,7 +91,7 @@ impl NewPodcast {
Ok(dbqueries::get_podcast_from_title(&self.title)?)
}
fn index(&self) -> QueryResult<()> {
pub fn index(&self) -> QueryResult<()> {
let pd = dbqueries::get_podcast_from_title(&self.title);
match pd {
+1 -1
View File
@@ -277,7 +277,7 @@ impl<'a> Source {
self.save_changes::<Source>(&*tempdb)
}
pub fn refresh(mut self) -> Result<Feed> {
pub fn into_feed(mut self) -> Result<Feed> {
use reqwest::header::{ETag, EntityTag, Headers, HttpDate, LastModified};
let mut headers = Headers::new();