Skip to content

Commit

Permalink
moves resources into a module
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrius Aucinas committed Oct 28, 2019
1 parent 79a4462 commit f0ef7fc
Show file tree
Hide file tree
Showing 10 changed files with 201 additions and 204 deletions.
2 changes: 1 addition & 1 deletion native/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ use std::path::Path;
use adblock::engine::Engine;
use adblock::filter_lists;
use adblock::resources::Resource;
use adblock::resource_assembler::{assemble_web_accessible_resources, assemble_scriptlet_resources};
use adblock::resources::resource_assembler::{assemble_web_accessible_resources, assemble_scriptlet_resources};


#[derive(Serialize, Deserialize)]
Expand Down
3 changes: 1 addition & 2 deletions src/blocker.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@ use crate::filters::network::{NetworkFilter, NetworkMatchable, FilterError};
use crate::request::Request;
use crate::utils::{fast_hash, Hash};
use crate::optimizer;
use crate::resources::Resource;
use crate::redirect_resources::{RedirectResourceStorage, RedirectResource};
use crate::resources::{Resource, RedirectResourceStorage, RedirectResource};
use crate::utils;

pub struct BlockerOptions {
Expand Down
3 changes: 1 addition & 2 deletions src/engine.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@ use crate::blocker::{Blocker, BlockerError, BlockerOptions, BlockerResult};
use crate::lists::parse_filters;
use crate::request::Request;
use crate::filters::network::NetworkFilter;
use crate::resources::Resource;
use crate::redirect_resources::{RedirectResource};
use crate::resources::{Resource, RedirectResource};
use rmps;
use flate2::write::GzEncoder;
use flate2::read::GzDecoder;
Expand Down
2 changes: 0 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,4 @@ pub mod optimizer;
pub mod url_parser;
pub mod engine;
pub mod filter_lists;
pub mod redirect_resources;
pub mod resources;
pub mod resource_assembler;
97 changes: 0 additions & 97 deletions src/redirect_resources.rs

This file was deleted.

98 changes: 0 additions & 98 deletions src/resources.rs

This file was deleted.

Loading

0 comments on commit f0ef7fc

Please sign in to comment.