Move core::traits to core::shared

Misnomer since it does not only contain traits
This commit is contained in:
Armin Friedl 2021-11-17 21:27:37 +01:00
parent 198e28460d
commit d7ed757120
12 changed files with 13 additions and 13 deletions

View file

@ -1 +1 @@
pub mod traits;
pub mod shared;

View file

@ -1,4 +1,4 @@
use super::core::traits::Matcher;
use super::core::shared::Matcher;
use flx_rs::Score;
use log::debug;

View file

@ -2,7 +2,7 @@ use std::ops::Range;
use fuse_rust::Fuse;
use super::core::traits::Matcher;
use super::core::shared::Matcher;
fn flatten_ranges(ranges: Vec<Range<usize>>) -> Vec<usize> {
ranges.into_iter().flat_map(|range| {range.collect::<Vec<usize>>().into_iter()})

View file

@ -1,4 +1,4 @@
use super::core::traits::Matcher;
use super::core::shared::Matcher;
pub struct PrefixMatcher;

View file

@ -1,6 +1,6 @@
use fuzzy_matcher::{FuzzyMatcher, skim::SkimMatcherV2};
use super::core::traits::Matcher;
use super::core::shared::Matcher;
pub struct SkimMatcher {
matcher: SkimMatcherV2

View file

@ -5,9 +5,9 @@ use rayon::prelude::*;
use super::matcher::PrefixMatcher;
use super::core::traits::Matcher;
use super::core::traits::Source;
use super::core::traits::Entry;
use super::core::shared::Matcher;
use super::core::shared::Source;
use super::core::shared::Entry;
pub type SourceRef = Box<dyn Source>;

View file

@ -5,7 +5,7 @@ use log::{debug, error, trace};
use walkdir::WalkDir;
use nix::unistd::{getpid, setpgid};
use super::core::traits::{Entry, Source};
use super::core::shared::{Entry, Source};
#[derive(Debug)]
struct App {

View file

@ -3,7 +3,7 @@ use log::{debug, error};
use nix::unistd::{getpid, setpgid};
use walkdir::WalkDir;
use super::core::traits::{Entry, Source};
use super::core::shared::{Entry, Source};
pub struct ShellHost {
scripts: Vec<PathBuf>,

View file

@ -1,4 +1,4 @@
use super::core::traits::{Entry, Source};
use super::core::shared::{Entry, Source};
pub struct TestSource {
entries: Vec<Entry>,

View file

@ -1,6 +1,6 @@
use std::collections::HashMap;
use super::core::traits::{Entry, Source};
use super::core::shared::{Entry, Source};
use log::debug;
use xcb::ffi::XCB_CURRENT_TIME;
use xcb_util::ewmh;

View file

@ -4,7 +4,7 @@ use std::ffi::c_void;
use log::debug;
use winit::{platform::unix::WindowExtUnix, window::Window};
use super::core::traits::Entry;
use super::core::shared::Entry;
use super::painter;