Skip to content

Commit

Permalink
Bump version number for new release
Browse files Browse the repository at this point in the history
  • Loading branch information
hisbaan committed Apr 30, 2022
1 parent 961d40b commit c2c4c10
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "didyoumean"
authors = ["Hisbaan Noorani"]
version = "1.1.1"
version = "1.1.2"
edition = "2021"
license = "GPL-3.0"
description = "A CLI spelling corrector"
Expand Down
11 changes: 7 additions & 4 deletions src/main.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
pub mod lib;
pub mod langs;
pub mod lib;

use clap::Parser;
use colored::*;
Expand All @@ -15,8 +15,8 @@ use std::{
};
use tokio;

use lib::{edit_distance, insert_and_shift, yank};
use langs::{LOCALES, SUPPORTED_LANGS};
use lib::{edit_distance, insert_and_shift, yank};

// Parse command line arguments to get the search term.
#[derive(Parser)]
Expand Down Expand Up @@ -79,7 +79,11 @@ fn run_app() -> std::result::Result<(), Error> {

// Add words to vector.
for key in SUPPORTED_LANGS.keys() {
langs.push(format!(" - {}: {}", key, SUPPORTED_LANGS.get(key).clone().unwrap()));
langs.push(format!(
" - {}: {}",
key,
SUPPORTED_LANGS.get(key).clone().unwrap()
));
}

// Sort and print vector.
Expand Down Expand Up @@ -147,7 +151,6 @@ fn run_app() -> std::result::Result<(), Error> {
}

// Get word list. The program will only get here if/when this is a valid word list.
// TODO figure out non utf-8 chars
let word_list =
fs::read_to_string(dirs::data_dir().unwrap().join("didyoumean").join(args.lang))
.expect("Error reading file");
Expand Down

0 comments on commit c2c4c10

Please sign in to comment.