From efc7107bf52902c42fcfef69c0033d1841eeaa42 Mon Sep 17 00:00:00 2001 From: Saveliy Yusufov Date: Sun, 14 Apr 2024 14:36:50 -0400 Subject: [PATCH] Fix lint issue brought up by CI - Fixed `clippy::needless_doctest_main` issue in README --- README.md | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index dc55985..c3e3996 100644 --- a/README.md +++ b/README.md @@ -66,12 +66,10 @@ use phastft::{ fft_64 }; -fn main() { - let big_n = 1 << 10; - let mut reals: Vec = (1..=big_n).map(|i| i as f64).collect(); - let mut imags: Vec = (1..=big_n).map(|i| i as f64).collect(); - fft_64(&mut reals, &mut imags, Direction::Forward); -} +let big_n = 1 << 10; +let mut reals: Vec = (1..=big_n).map(|i| i as f64).collect(); +let mut imags: Vec = (1..=big_n).map(|i| i as f64).collect(); +fft_64(&mut reals, &mut imags, Direction::Forward); ``` ### Python