Cleaning up compiler warnings.
This commit is contained in:
@@ -28,6 +28,7 @@ use crate::DynamicBlock;
|
||||
pub struct DiffResult {
|
||||
status: DiffStatus,
|
||||
name: String,
|
||||
#[allow(dead_code)]
|
||||
message: Option<String>,
|
||||
children: Vec<DiffResult>,
|
||||
}
|
||||
|
||||
@@ -1,17 +1,6 @@
|
||||
use std::path::Path;
|
||||
use std::process::Command;
|
||||
|
||||
use crate::compare::sexp::sexp;
|
||||
|
||||
pub fn compare_parse_org_document<'a, C>(file_path: C) -> Result<String, Box<dyn std::error::Error>>
|
||||
where
|
||||
C: AsRef<Path>,
|
||||
{
|
||||
let org_sexp = emacs_parse_org_document(file_path)?;
|
||||
let parsed_sexp = sexp(org_sexp.as_str()).expect("Parse failure");
|
||||
todo!()
|
||||
}
|
||||
|
||||
pub fn emacs_parse_org_document<'a, C>(file_path: C) -> Result<String, Box<dyn std::error::Error>>
|
||||
where
|
||||
C: AsRef<Path>,
|
||||
|
||||
@@ -27,7 +27,9 @@ pub enum Token<'s> {
|
||||
|
||||
#[derive(Debug)]
|
||||
pub struct TextWithProperties<'s> {
|
||||
#[allow(dead_code)]
|
||||
text: &'s str,
|
||||
#[allow(dead_code)]
|
||||
properties: Vec<Token<'s>>,
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user