Cleaning up compiler warnings.

This commit is contained in:
Tom Alexander
2023-04-21 18:22:17 -04:00
parent f4aaa43497
commit 04dfffc000
7 changed files with 11 additions and 31 deletions

View File

@@ -28,6 +28,7 @@ use crate::DynamicBlock;
pub struct DiffResult {
status: DiffStatus,
name: String,
#[allow(dead_code)]
message: Option<String>,
children: Vec<DiffResult>,
}

View File

@@ -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>,

View File

@@ -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>>,
}