diff --git a/src/context/context.rs b/src/context/context.rs index d8f2de31..0f41963b 100644 --- a/src/context/context.rs +++ b/src/context/context.rs @@ -90,7 +90,10 @@ impl<'g, 'r, 's> Context<'g, 'r, 's> { self.global_settings } - pub fn with_global_settings<'gg>(&self, new_settings: &'gg GlobalSettings<'gg, 's>) -> Context<'gg, 'r, 's> { + pub fn with_global_settings<'gg>( + &self, + new_settings: &'gg GlobalSettings<'gg, 's>, + ) -> Context<'gg, 'r, 's> { Context { global_settings: new_settings, tree: self.tree.clone(), diff --git a/src/context/file_access_interface.rs b/src/context/file_access_interface.rs index 87d7b272..d54c7cfd 100644 --- a/src/context/file_access_interface.rs +++ b/src/context/file_access_interface.rs @@ -18,7 +18,6 @@ impl FileAccessInterface for LocalFileAccessInterface { .map(PathBuf::as_path) .map(|pb| pb.join(path)) .unwrap_or_else(|| PathBuf::from(path)); - eprintln!("Reading file: {}", final_path.display()); Ok(std::fs::read_to_string(final_path)?) } } diff --git a/src/context/global_settings.rs b/src/context/global_settings.rs index efeccfc4..4231d428 100644 --- a/src/context/global_settings.rs +++ b/src/context/global_settings.rs @@ -22,7 +22,7 @@ impl<'g, 's> GlobalSettings<'g, 's> { working_directory: None, }, in_progress_todo_keywords: BTreeSet::new(), - complete_todo_keywords: BTreeSet::new() + complete_todo_keywords: BTreeSet::new(), } } } diff --git a/src/parser/document.rs b/src/parser/document.rs index 8da59ef0..e9556f3f 100644 --- a/src/parser/document.rs +++ b/src/parser/document.rs @@ -135,8 +135,6 @@ fn document_org_source<'b, 'g, 'r, 's>( let new_context = context.with_global_settings(&new_settings); let context = &new_context; - // TODO: read the keywords into settings and apply them to the GlobalSettings. - let (remaining, document) = _document(context, input).map(|(rem, out)| (Into::<&str>::into(rem), out))?; {