make cargo happy

This commit is contained in:
Gabriel 2025-07-22 11:11:29 -04:00
parent fbe201c4db
commit 88a6454f57
3 changed files with 3 additions and 22 deletions

View file

@ -1,5 +1,4 @@
use std::path::PathBuf;
use chrono::FixedOffset;
use rusqlite::{ Connection, Result};
use super::files::*;
use super::net::*;
@ -209,9 +208,6 @@ pub fn get_feeds() -> Vec<Feed> {
Err(_) => {panic!("No idea what causes this")}
}
}
struct ReturnedFeedURLs {
url: String,
}
pub fn update_feeds() {
todo!()
}

View file

@ -1,9 +1,8 @@
use core::panic;
use iced::widget::image::Handle;
use rss::{Channel};
use bytes::Bytes;
use reqwest::{self, blocking::Client, header::USER_AGENT};
use scraper::{ElementRef, Html, Node, Selector};
use scraper::{Html, Selector};
fn get_content(url: &str) -> Option<String> {
let client = Client::new();
@ -19,7 +18,6 @@ fn get_content(url: &str) -> Option<String> {
}
Err(_) => {return None}
}
None
}
pub fn get_feeds(url: &str) -> Option<Vec<Channel>>{
@ -46,19 +44,10 @@ pub fn get_feeds(url: &str) -> Option<Vec<Channel>>{
}
pub fn is_feed(url: &str) -> bool {
return match get_feeds(url) {
match get_feeds(url) {
Some(_) => true,
None => false
};
false
}
}
pub fn load_rss(url: &str) -> Option<Channel>{

View file

@ -2,17 +2,13 @@ use crate::db::FeedItem;
use super::db;
use super::ui;
use iced::widget::markdown;
use iced::widget::scrollable;
use iced::widget::Container;
use iced::Settings;
use rss_content::Content;
use ui::Message;
use rss_content;
use iced::{
widget::{button, column, container, text},
Element,
Length::Fill,
};
pub fn list_feeds() -> iced::widget::Column<'static, Message> {