treat new line as a separator #258
clippy
5 errors, 3 warnings
Details
Results
Message level | Amount |
---|---|
Internal compiler error | 0 |
Error | 5 |
Warning | 3 |
Note | 0 |
Help | 0 |
Versions
- rustc 1.81.0 (eeb90cda1 2024-09-04)
- cargo 1.81.0 (2dbb1af80 2024-08-20)
- clippy 0.1.81 (eeb90cd 2024-09-04)
Annotations
Check failure on line 69 in web-app/src/lib.rs
github-actions / clippy
no method named `get_locations` found for struct `quranize::Quranize` in the current scope
error[E0599]: no method named `get_locations` found for struct `quranize::Quranize` in the current scope
--> web-app/src/lib.rs:69:25
|
69 | { self.quranize.get_locations(quran).iter() }
| ^^^^^^^^^^^^^ method not found in `Quranize`
Check failure on line 58 in web-app/src/lib.rs
github-actions / clippy
mismatched types
error[E0308]: mismatched types
--> web-app/src/lib.rs:58:17
|
58 | location_count,
| ^^^^^^^^^^^^^^ expected `usize`, found `Vec<&str>`
|
= note: expected type `usize`
found struct `std::vec::Vec<&str>`
Check failure on line 57 in web-app/src/lib.rs
github-actions / clippy
no method named `join` found for type `usize` in the current scope
error[E0599]: no method named `join` found for type `usize` in the current scope
--> web-app/src/lib.rs:57:43
|
57 | explanation: explanations.join("-"),
| ^^^^ method not found in `usize`
Check failure on line 40 in web-app/src/lib.rs
github-actions / clippy
this function takes 0 arguments but 1 argument was supplied
error[E0061]: this function takes 0 arguments but 1 argument was supplied
--> web-app/src/lib.rs:40:22
|
40 | _ => Quranize::new(min_harfs),
| ^^^^^^^^^^^^^ --------- unexpected argument of type `u16`
|
note: associated function defined here
--> /home/runner/work/quranize-rs/quranize-rs/quranize/src/lib.rs:49:12
|
49 | pub fn new() -> Self {
| ^^^
help: remove the extra argument
|
40 - _ => Quranize::new(min_harfs),
40 + _ => Quranize::new(),
|
Check failure on line 1 in web-app/src/lib.rs
github-actions / clippy
unresolved import `quranize::AyaGetter`
error[E0432]: unresolved import `quranize::AyaGetter`
--> web-app/src/lib.rs:1:16
|
1 | use quranize::{AyaGetter, Quranize};
| ^^^^^^^^^ no `AyaGetter` in the root
Check warning on line 82 in quranize/src/transliteration/mod.rs
github-actions / clippy
function `single_harf_map` is never used
warning: function `single_harf_map` is never used
--> quranize/src/transliteration/mod.rs:82:15
|
82 | pub(super) fn single_harf_map(c: char) -> &'static [&'static str] {
| ^^^^^^^^^^^^^^^
Check warning on line 67 in quranize/src/suffix_tree/mod.rs
github-actions / clippy
methods `find`, `collect_data`, and `collect_data_to_buffer` are never used
warning: methods `find`, `collect_data`, and `collect_data_to_buffer` are never used
--> quranize/src/suffix_tree/mod.rs:67:19
|
14 | impl<'a> SuffixTree<'a> {
| ----------------------- methods in this implementation
...
67 | pub(super) fn find(&self, v: usize, s: &str) -> Vec<Index> {
| ^^^^
...
77 | pub(super) fn collect_data(&self, v: usize) -> Vec<Index> {
| ^^^^^^^^^^^^
...
83 | fn collect_data_to_buffer(&self, v: usize, buffer: &mut Vec<Index>) {
| ^^^^^^^^^^^^^^^^^^^^^^
Check warning on line 10 in quranize/src/normalization/mod.rs
github-actions / clippy
function `normalize_first_aya` is never used
warning: function `normalize_first_aya` is never used
--> quranize/src/normalization/mod.rs:10:15
|
10 | pub(super) fn normalize_first_aya(text: &str) -> String {
| ^^^^^^^^^^^^^^^^^^^
|
= note: `#[warn(dead_code)]` on by default