Cleanup.
This commit is contained in:
parent
028aeb70aa
commit
400f53e440
@ -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(),
|
||||
|
@ -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)?)
|
||||
}
|
||||
}
|
||||
|
@ -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(),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -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))?;
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user