Move core::traits
to core::shared
Misnomer since it does not only contain traits
This commit is contained in:
parent
198e28460d
commit
d7ed757120
12 changed files with 13 additions and 13 deletions
|
@ -1 +1 @@
|
|||
pub mod traits;
|
||||
pub mod shared;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
use super::core::traits::Matcher;
|
||||
use super::core::shared::Matcher;
|
||||
|
||||
use flx_rs::Score;
|
||||
use log::debug;
|
||||
|
|
|
@ -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()})
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
use super::core::traits::Matcher;
|
||||
use super::core::shared::Matcher;
|
||||
|
||||
pub struct PrefixMatcher;
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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>;
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -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>,
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
use super::core::traits::{Entry, Source};
|
||||
use super::core::shared::{Entry, Source};
|
||||
|
||||
pub struct TestSource {
|
||||
entries: Vec<Entry>,
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue