Skip to content

Commit

Permalink
styles: format code
Browse files Browse the repository at this point in the history
  • Loading branch information
phodal committed Dec 23, 2021
1 parent ecb09d2 commit a613602
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
1 change: 0 additions & 1 deletion src/helper/entry_watcher.rs
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@ pub async fn async_watch<P: AsRef<Path>>(path: P, search_url: String) -> notify:
}

fn feed_by_event(event: Event, search_url: &str) -> Result<(), Box<dyn Error>> {
// only for data modify
// todo: looking for better way
match &event.kind {
EventKind::Modify(ModifyKind::Data(_data)) => {
Expand Down
9 changes: 6 additions & 3 deletions src/helper/search_config.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
use std::collections::{BTreeMap, BTreeSet};

use serde_derive::{Deserialize, Serialize};

use quake_core::entry::EntryDefine;
use quake_core::meta::MetaProperty;
use serde_derive::{Deserialize, Serialize};
use std::collections::{BTreeMap, BTreeSet};

#[derive(Debug, Clone, Serialize, Deserialize)]
#[serde(rename_all = "camelCase")]
Expand Down Expand Up @@ -62,9 +64,10 @@ fn str_to_string(list: Vec<&str>) -> Vec<String> {

#[cfg(test)]
mod tests {
use crate::helper::search_config::define_to_settings;
use quake_core::entry::EntryDefine;

use crate::helper::search_config::define_to_settings;

fn get_define() -> EntryDefine {
let yaml = "
- type: story
Expand Down

0 comments on commit a613602

Please sign in to comment.