refactor: reexport some items

This commit is contained in:
Anna 2018-09-04 14:44:23 -04:00
parent fc9c7b1971
commit f846ec8837
3 changed files with 15 additions and 0 deletions

View File

@ -2,6 +2,7 @@
#[cfg(feature = "logic")] #[macro_use] extern crate failure;
#[cfg(feature = "logic")] #[macro_use] extern crate lazy_static;
pub extern crate ffxiv_types;
#[macro_use] extern crate serde_derive;
#[cfg(feature = "logic")]
@ -11,3 +12,6 @@ pub mod logic;
pub mod models;
crate mod util;
#[cfg(feature = "logic")]
pub use crate::logic::*;

View File

@ -26,6 +26,12 @@ pub mod character;
pub mod free_company;
pub mod search;
pub use self::{
character::parse as parse_character,
free_company::parse as parse_free_company,
search::*,
};
crate fn plain_parse(html: &Html, select: &scraper::Selector) -> Result<String> {
let string = html
.select(select)

View File

@ -8,6 +8,11 @@ use scraper::Html;
pub mod character;
pub mod free_company;
pub use self::{
character::parse as parse_character_search,
free_company::parse as parse_free_company_search,
};
selectors!(
PAGINATION_TOTAL => ".parts__total";
PAGINATION_PAGES => ".btn__pager__current";