From 748e741f740ac46ec40e42679aba3b07927709c0 Mon Sep 17 00:00:00 2001 From: nsfisis Date: Sun, 17 May 2026 15:08:03 +0900 Subject: chore: cargo clippy --fix --- .../src/composer/pcre/preg.rs | 430 ++++++++++----------- 1 file changed, 215 insertions(+), 215 deletions(-) (limited to 'crates/shirabe-external-packages/src/composer/pcre') diff --git a/crates/shirabe-external-packages/src/composer/pcre/preg.rs b/crates/shirabe-external-packages/src/composer/pcre/preg.rs index 3dd8b4f..9c39d42 100644 --- a/crates/shirabe-external-packages/src/composer/pcre/preg.rs +++ b/crates/shirabe-external-packages/src/composer/pcre/preg.rs @@ -2,518 +2,518 @@ pub struct Preg; impl Preg { - pub fn r#match(pattern: &str, subject: &str) -> anyhow::Result { + pub fn r#match(_pattern: &str, _subject: &str) -> anyhow::Result { todo!() } pub fn match3( - pattern: &str, - subject: &str, - matches: Option<&mut indexmap::IndexMap>, + _pattern: &str, + _subject: &str, + _matches: Option<&mut indexmap::IndexMap>, ) -> anyhow::Result { todo!() } pub fn match4( - pattern: &str, - subject: &str, - matches: Option<&mut indexmap::IndexMap>, - flags: i64, + _pattern: &str, + _subject: &str, + _matches: Option<&mut indexmap::IndexMap>, + _flags: i64, ) -> anyhow::Result { todo!() } pub fn match5( - pattern: &str, - subject: &str, - matches: Option<&mut indexmap::IndexMap>, - flags: i64, - offset: usize, + _pattern: &str, + _subject: &str, + _matches: Option<&mut indexmap::IndexMap>, + _flags: i64, + _offset: usize, ) -> anyhow::Result { todo!() } - pub fn match_strict_groups(pattern: &str, subject: &str) -> anyhow::Result { + pub fn match_strict_groups(_pattern: &str, _subject: &str) -> anyhow::Result { todo!() } pub fn match_strict_groups3( - pattern: &str, - subject: &str, - matches: Option<&mut indexmap::IndexMap>, + _pattern: &str, + _subject: &str, + _matches: Option<&mut indexmap::IndexMap>, ) -> anyhow::Result { todo!() } pub fn match_strict_groups4( - pattern: &str, - subject: &str, - matches: Option<&mut indexmap::IndexMap>, - flags: i64, + _pattern: &str, + _subject: &str, + _matches: Option<&mut indexmap::IndexMap>, + _flags: i64, ) -> anyhow::Result { todo!() } pub fn match_strict_groups5( - pattern: &str, - subject: &str, - matches: Option<&mut indexmap::IndexMap>, - flags: i64, - offset: usize, + _pattern: &str, + _subject: &str, + _matches: Option<&mut indexmap::IndexMap>, + _flags: i64, + _offset: usize, ) -> anyhow::Result { todo!() } - pub fn match_with_offsets(pattern: &str, subject: &str) -> anyhow::Result { + pub fn match_with_offsets(_pattern: &str, _subject: &str) -> anyhow::Result { todo!() } pub fn match_with_offsets3( - pattern: &str, - subject: &str, - matches: Option<&mut indexmap::IndexMap>, + _pattern: &str, + _subject: &str, + _matches: Option<&mut indexmap::IndexMap>, ) -> anyhow::Result { todo!() } pub fn match_with_offsets4( - pattern: &str, - subject: &str, - matches: Option<&mut indexmap::IndexMap>, - flags: i64, + _pattern: &str, + _subject: &str, + _matches: Option<&mut indexmap::IndexMap>, + _flags: i64, ) -> anyhow::Result { todo!() } pub fn match_with_offsets5( - pattern: &str, - subject: &str, - matches: Option<&mut indexmap::IndexMap>, - flags: i64, - offset: usize, + _pattern: &str, + _subject: &str, + _matches: Option<&mut indexmap::IndexMap>, + _flags: i64, + _offset: usize, ) -> anyhow::Result { todo!() } - pub fn match_all(pattern: &str, subject: &str) -> anyhow::Result { + pub fn match_all(_pattern: &str, _subject: &str) -> anyhow::Result { todo!() } pub fn match_all3( - pattern: &str, - subject: &str, - matches: Option<&mut indexmap::IndexMap>>, + _pattern: &str, + _subject: &str, + _matches: Option<&mut indexmap::IndexMap>>, ) -> anyhow::Result { todo!() } pub fn match_all4( - pattern: &str, - subject: &str, - matches: Option<&mut indexmap::IndexMap>>, - flags: i64, + _pattern: &str, + _subject: &str, + _matches: Option<&mut indexmap::IndexMap>>, + _flags: i64, ) -> anyhow::Result { todo!() } pub fn match_all5( - pattern: &str, - subject: &str, - matches: Option<&mut indexmap::IndexMap>>, - flags: i64, - offset: usize, + _pattern: &str, + _subject: &str, + _matches: Option<&mut indexmap::IndexMap>>, + _flags: i64, + _offset: usize, ) -> anyhow::Result { todo!() } - pub fn match_all_strict_groups(pattern: &str, subject: &str) -> anyhow::Result { + pub fn match_all_strict_groups(_pattern: &str, _subject: &str) -> anyhow::Result { todo!() } pub fn match_all_strict_groups3( - pattern: &str, - subject: &str, - matches: Option<&mut indexmap::IndexMap>>, + _pattern: &str, + _subject: &str, + _matches: Option<&mut indexmap::IndexMap>>, ) -> anyhow::Result { todo!() } pub fn match_all_strict_groups4( - pattern: &str, - subject: &str, - matches: Option<&mut indexmap::IndexMap>>, - flags: i64, + _pattern: &str, + _subject: &str, + _matches: Option<&mut indexmap::IndexMap>>, + _flags: i64, ) -> anyhow::Result { todo!() } pub fn match_all_strict_groups5( - pattern: &str, - subject: &str, - matches: Option<&mut indexmap::IndexMap>>, - flags: i64, - offset: usize, + _pattern: &str, + _subject: &str, + _matches: Option<&mut indexmap::IndexMap>>, + _flags: i64, + _offset: usize, ) -> anyhow::Result { todo!() } - pub fn match_all_with_offsets(pattern: &str, subject: &str) -> anyhow::Result { + pub fn match_all_with_offsets(_pattern: &str, _subject: &str) -> anyhow::Result { todo!() } pub fn match_all_with_offsets3( - pattern: &str, - subject: &str, - matches: Option<&mut indexmap::IndexMap>>, + _pattern: &str, + _subject: &str, + _matches: Option<&mut indexmap::IndexMap>>, ) -> anyhow::Result { todo!() } pub fn match_all_with_offsets4( - pattern: &str, - subject: &str, - matches: Option<&mut indexmap::IndexMap>>, - flags: i64, + _pattern: &str, + _subject: &str, + _matches: Option<&mut indexmap::IndexMap>>, + _flags: i64, ) -> anyhow::Result { todo!() } pub fn match_all_with_offsets5( - pattern: &str, - subject: &str, - matches: Option<&mut indexmap::IndexMap>>, - flags: i64, - offset: usize, + _pattern: &str, + _subject: &str, + _matches: Option<&mut indexmap::IndexMap>>, + _flags: i64, + _offset: usize, ) -> anyhow::Result { todo!() } - pub fn replace(pattern: &str, replacement: &str, subject: &str) -> anyhow::Result { + pub fn replace(_pattern: &str, _replacement: &str, _subject: &str) -> anyhow::Result { todo!() } pub fn replace4( - pattern: &str, - replacement: &str, - subject: &str, - limit: i64, + _pattern: &str, + _replacement: &str, + _subject: &str, + _limit: i64, ) -> anyhow::Result { todo!() } pub fn replace5( - pattern: &str, - replacement: &str, - subject: &str, - limit: i64, - count: &mut usize, + _pattern: &str, + _replacement: &str, + _subject: &str, + _limit: i64, + _count: &mut usize, ) -> anyhow::Result { todo!() } pub fn replace_callback) -> String>( - pattern: &str, - replacement: F, - subject: &str, + _pattern: &str, + _replacement: F, + _subject: &str, ) -> anyhow::Result { todo!() } pub fn replace_callback4) -> String>( - pattern: &str, - replacement: F, - subject: &str, - limit: i64, + _pattern: &str, + _replacement: F, + _subject: &str, + _limit: i64, ) -> anyhow::Result { todo!() } pub fn replace_callback5) -> String>( - pattern: &str, - replacement: F, - subject: &str, - limit: i64, - count: &mut usize, + _pattern: &str, + _replacement: F, + _subject: &str, + _limit: i64, + _count: &mut usize, ) -> anyhow::Result { todo!() } pub fn replace_callback6) -> String>( - pattern: &str, - replacement: F, - subject: &str, - limit: i64, - count: Option<&mut usize>, - flags: i64, + _pattern: &str, + _replacement: F, + _subject: &str, + _limit: i64, + _count: Option<&mut usize>, + _flags: i64, ) -> anyhow::Result { todo!() } pub fn replace_callback_array( - pattern: &indexmap::IndexMap, - subject: &str, + _pattern: &indexmap::IndexMap, + _subject: &str, ) -> anyhow::Result { todo!() } pub fn replace_callback_array3( - pattern: &indexmap::IndexMap, - subject: &str, - limit: i64, + _pattern: &indexmap::IndexMap, + _subject: &str, + _limit: i64, ) -> anyhow::Result { todo!() } pub fn replace_callback_array4( - pattern: &indexmap::IndexMap, - subject: &str, - limit: i64, - count: &mut usize, + _pattern: &indexmap::IndexMap, + _subject: &str, + _limit: i64, + _count: &mut usize, ) -> anyhow::Result { todo!() } pub fn replace_callback_array5( - pattern: &indexmap::IndexMap, - subject: &str, - limit: i64, - count: Option<&mut usize>, - flags: i64, + _pattern: &indexmap::IndexMap, + _subject: &str, + _limit: i64, + _count: Option<&mut usize>, + _flags: i64, ) -> anyhow::Result { todo!() } - pub fn split(pattern: &str, subject: &str) -> anyhow::Result> { + pub fn split(_pattern: &str, _subject: &str) -> anyhow::Result> { todo!() } - pub fn split3(pattern: &str, subject: &str, limit: i64) -> anyhow::Result> { + pub fn split3(_pattern: &str, _subject: &str, _limit: i64) -> anyhow::Result> { todo!() } pub fn split4( - pattern: &str, - subject: &str, - limit: i64, - flags: i64, + _pattern: &str, + _subject: &str, + _limit: i64, + _flags: i64, ) -> anyhow::Result> { todo!() } pub fn split_with_offsets( - pattern: &str, - subject: &str, + _pattern: &str, + _subject: &str, ) -> anyhow::Result> { todo!() } pub fn split_with_offsets3( - pattern: &str, - subject: &str, - limit: i64, + _pattern: &str, + _subject: &str, + _limit: i64, ) -> anyhow::Result> { todo!() } pub fn split_with_offsets4( - pattern: &str, - subject: &str, - limit: i64, - flags: i64, + _pattern: &str, + _subject: &str, + _limit: i64, + _flags: i64, ) -> anyhow::Result> { todo!() } - pub fn grep(pattern: &str, array: &[&str]) -> anyhow::Result> { + pub fn grep(_pattern: &str, _array: &[&str]) -> anyhow::Result> { todo!() } - pub fn grep3(pattern: &str, array: &[&str], flags: i64) -> anyhow::Result> { + pub fn grep3(_pattern: &str, _array: &[&str], _flags: i64) -> anyhow::Result> { todo!() } - pub fn is_match(pattern: &str, subject: &str) -> anyhow::Result { + pub fn is_match(_pattern: &str, _subject: &str) -> anyhow::Result { todo!() } pub fn is_match3( - pattern: &str, - subject: &str, - matches: Option<&mut indexmap::IndexMap>, + _pattern: &str, + _subject: &str, + _matches: Option<&mut indexmap::IndexMap>, ) -> anyhow::Result { todo!() } pub fn is_match4( - pattern: &str, - subject: &str, - matches: Option<&mut indexmap::IndexMap>, - flags: i64, + _pattern: &str, + _subject: &str, + _matches: Option<&mut indexmap::IndexMap>, + _flags: i64, ) -> anyhow::Result { todo!() } pub fn is_match5( - pattern: &str, - subject: &str, - matches: Option<&mut indexmap::IndexMap>, - flags: i64, - offset: usize, + _pattern: &str, + _subject: &str, + _matches: Option<&mut indexmap::IndexMap>, + _flags: i64, + _offset: usize, ) -> anyhow::Result { todo!() } - pub fn is_match_strict_groups(pattern: &str, subject: &str) -> anyhow::Result { + pub fn is_match_strict_groups(_pattern: &str, _subject: &str) -> anyhow::Result { todo!() } pub fn is_match_strict_groups3( - pattern: &str, - subject: &str, - matches: Option<&mut indexmap::IndexMap>, + _pattern: &str, + _subject: &str, + _matches: Option<&mut indexmap::IndexMap>, ) -> anyhow::Result { todo!() } pub fn is_match_strict_groups4( - pattern: &str, - subject: &str, - matches: Option<&mut indexmap::IndexMap>, - flags: i64, + _pattern: &str, + _subject: &str, + _matches: Option<&mut indexmap::IndexMap>, + _flags: i64, ) -> anyhow::Result { todo!() } pub fn is_match_strict_groups5( - pattern: &str, - subject: &str, - matches: Option<&mut indexmap::IndexMap>, - flags: i64, - offset: usize, + _pattern: &str, + _subject: &str, + _matches: Option<&mut indexmap::IndexMap>, + _flags: i64, + _offset: usize, ) -> anyhow::Result { todo!() } - pub fn is_match_with_offsets(pattern: &str, subject: &str) -> anyhow::Result { + pub fn is_match_with_offsets(_pattern: &str, _subject: &str) -> anyhow::Result { todo!() } pub fn is_match_with_offsets3( - pattern: &str, - subject: &str, - matches: Option<&mut indexmap::IndexMap>, + _pattern: &str, + _subject: &str, + _matches: Option<&mut indexmap::IndexMap>, ) -> anyhow::Result { todo!() } pub fn is_match_with_offsets4( - pattern: &str, - subject: &str, - matches: Option<&mut indexmap::IndexMap>, - flags: i64, + _pattern: &str, + _subject: &str, + _matches: Option<&mut indexmap::IndexMap>, + _flags: i64, ) -> anyhow::Result { todo!() } pub fn is_match_with_offsets5( - pattern: &str, - subject: &str, - matches: Option<&mut indexmap::IndexMap>, - flags: i64, - offset: usize, + _pattern: &str, + _subject: &str, + _matches: Option<&mut indexmap::IndexMap>, + _flags: i64, + _offset: usize, ) -> anyhow::Result { todo!() } - pub fn is_match_all(pattern: &str, subject: &str) -> anyhow::Result { + pub fn is_match_all(_pattern: &str, _subject: &str) -> anyhow::Result { todo!() } pub fn is_match_all3( - pattern: &str, - subject: &str, - matches: Option<&mut indexmap::IndexMap>>, + _pattern: &str, + _subject: &str, + _matches: Option<&mut indexmap::IndexMap>>, ) -> anyhow::Result { todo!() } pub fn is_match_all4( - pattern: &str, - subject: &str, - matches: Option<&mut indexmap::IndexMap>>, - flags: i64, + _pattern: &str, + _subject: &str, + _matches: Option<&mut indexmap::IndexMap>>, + _flags: i64, ) -> anyhow::Result { todo!() } pub fn is_match_all5( - pattern: &str, - subject: &str, - matches: Option<&mut indexmap::IndexMap>>, - flags: i64, - offset: usize, + _pattern: &str, + _subject: &str, + _matches: Option<&mut indexmap::IndexMap>>, + _flags: i64, + _offset: usize, ) -> anyhow::Result { todo!() } - pub fn is_match_all_strict_groups(pattern: &str, subject: &str) -> anyhow::Result { + pub fn is_match_all_strict_groups(_pattern: &str, _subject: &str) -> anyhow::Result { todo!() } pub fn is_match_all_strict_groups3( - pattern: &str, - subject: &str, - matches: Option<&mut indexmap::IndexMap>>, + _pattern: &str, + _subject: &str, + _matches: Option<&mut indexmap::IndexMap>>, ) -> anyhow::Result { todo!() } pub fn is_match_all_strict_groups4( - pattern: &str, - subject: &str, - matches: Option<&mut indexmap::IndexMap>>, - flags: i64, + _pattern: &str, + _subject: &str, + _matches: Option<&mut indexmap::IndexMap>>, + _flags: i64, ) -> anyhow::Result { todo!() } pub fn is_match_all_strict_groups5( - pattern: &str, - subject: &str, - matches: Option<&mut indexmap::IndexMap>>, - flags: i64, - offset: usize, + _pattern: &str, + _subject: &str, + _matches: Option<&mut indexmap::IndexMap>>, + _flags: i64, + _offset: usize, ) -> anyhow::Result { todo!() } - pub fn is_match_all_with_offsets(pattern: &str, subject: &str) -> anyhow::Result { + pub fn is_match_all_with_offsets(_pattern: &str, _subject: &str) -> anyhow::Result { todo!() } pub fn is_match_all_with_offsets3( - pattern: &str, - subject: &str, - matches: Option<&mut indexmap::IndexMap>>, + _pattern: &str, + _subject: &str, + _matches: Option<&mut indexmap::IndexMap>>, ) -> anyhow::Result { todo!() } pub fn is_match_all_with_offsets4( - pattern: &str, - subject: &str, - matches: Option<&mut indexmap::IndexMap>>, - flags: i64, + _pattern: &str, + _subject: &str, + _matches: Option<&mut indexmap::IndexMap>>, + _flags: i64, ) -> anyhow::Result { todo!() } pub fn is_match_all_with_offsets5( - pattern: &str, - subject: &str, - matches: Option<&mut indexmap::IndexMap>>, - flags: i64, - offset: usize, + _pattern: &str, + _subject: &str, + _matches: Option<&mut indexmap::IndexMap>>, + _flags: i64, + _offset: usize, ) -> anyhow::Result { todo!() } -- cgit v1.3.1