Skip to content

Commit

Permalink
Remove unnecessary error mapping
Browse files Browse the repository at this point in the history
  • Loading branch information
theoforger committed Sep 18, 2024
1 parent e42e550 commit 47bec81
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
}

// Attempt to read words from the two files
let link_words = read_words_from_file(args.to_link.unwrap()).map_err(|e| e.to_string())?;
let avoid_words = read_words_from_file(args.to_avoid.unwrap()).map_err(|e| e.to_string())?;
let link_words = read_words_from_file(args.to_link.unwrap())?;
let avoid_words = read_words_from_file(args.to_avoid.unwrap())?;

// Get clues from API
let clue_collection = api_instance
Expand Down

0 comments on commit 47bec81

Please sign in to comment.