From ada45c1bea838e5f38f24fe37e558c1b7959ae28 Mon Sep 17 00:00:00 2001 From: Akshay Date: Thu, 16 Apr 2020 20:40:45 +0530 Subject: redo pandoc commands to print fragments only --- docs/posts/rapid_refactoring_with_vim/index.html | 75 +++--------------------- 1 file changed, 7 insertions(+), 68 deletions(-) (limited to 'docs/posts/rapid_refactoring_with_vim') diff --git a/docs/posts/rapid_refactoring_with_vim/index.html b/docs/posts/rapid_refactoring_with_vim/index.html index 36d06fc..c5bc188 100644 --- a/docs/posts/rapid_refactoring_with_vim/index.html +++ b/docs/posts/rapid_refactoring_with_vim/index.html @@ -2,6 +2,7 @@ + @@ -37,71 +38,7 @@ Rapid Refactoring With Vim
- - - - - - - rapid_refactoring_with_vim - - - - -

Last weekend, I was tasked with refactoring the 96 unit tests on ruma-events to use strictly typed json objects using serde_json::json! instead of raw strings. It was rather painless thanks to vim :)

+

Last weekend, I was tasked with refactoring the 96 unit tests on ruma-events to use strictly typed json objects using serde_json::json! instead of raw strings. It was rather painless thanks to vim :)

Here’s a small sample of what had to be done (note the lines prefixed with the arrow):

use serde_json::{from_str};
   
@@ -190,13 +127,15 @@ BUFFER:    json!( ... );
  • :help mark-motions↩︎

  • - -
    - Hi. Subscribe + Hi. +

    I'm Akshay, I go by nerd or nerdypepper on the internet.

    I am a compsci undergrad, Rust programmer and an enthusiastic Vimmer. -- cgit v1.2.3