From 2c927ed0e562731faae62beee440cd7c4084bd6a Mon Sep 17 00:00:00 2001 From: Jeremy Wall Date: Sat, 9 Nov 2019 19:09:15 -0600 Subject: [PATCH] MAINT: Cleanup TODOs --- src/ast/printer/mod.rs | 3 --- src/convert/yaml.rs | 1 - src/main.rs | 1 - 3 files changed, 5 deletions(-) diff --git a/src/ast/printer/mod.rs b/src/ast/printer/mod.rs index 03aba29..ccac6be 100644 --- a/src/ast/printer/mod.rs +++ b/src/ast/printer/mod.rs @@ -16,9 +16,6 @@ use std::io::Write; use crate::ast::*; use crate::parse::CommentMap; -// TODO(jwall): We really need a way to preserve comments for these. -// Perhaps for code formatting we actually want to work on the token stream instead? - pub struct AstPrinter<'a, W> where W: Write, diff --git a/src/convert/yaml.rs b/src/convert/yaml.rs index 97f1625..1dbe33a 100644 --- a/src/convert/yaml.rs +++ b/src/convert/yaml.rs @@ -91,7 +91,6 @@ impl YamlConverter { } }; if key == "<<" { - // TODO(jwall): Handle merge keys if let serde_yaml::Value::Mapping(merge_map) = value { self.merge_mapping_keys(&mut fs, merge_map)?; } diff --git a/src/main.rs b/src/main.rs index 6514a1c..2a5c076 100644 --- a/src/main.rs +++ b/src/main.rs @@ -591,7 +591,6 @@ fn do_repl( loop { // print prompt let line = editor.readline(&format!("{}> ", lines.next_line()))?; - // TODO check for a repl command. // repl commands are only valid while not accumulating a statement; let trimmed = line.trim(); if trimmed.starts_with("#") {