80 |
let s = res.into_string()?;
|
81 |
#[allow(clippy::trivial_regex)]
|
82 |
let re = regex::Regex::new("<STATUS>").unwrap();
|
78 |
let s = res.into_string()?;
|
79 |
#[allow(clippy::trivial_regex)]
|
80 |
let re = regex::Regex::new("<STATUS>").unwrap();
|
1127 |
/// we try to convert some patterns to plain filters.
|
1128 |
#[allow(clippy::trivial_regex)]
|
1129 |
pub fn compile_regex(
|
130 |
// array
|
131 |
#[allow(clippy::trivial_regex)]
|
132 |
let _re_match = Regex::new(SECRET_HASH_REGEX)
|
122 |
// array
|
123 |
#[allow(clippy::trivial_regex)]
|
124 |
let _re_match = Regex::new(SECRET_HASH_REGEX)
|
93 |
// array
|
94 |
#[allow(clippy::trivial_regex)]
|
95 |
let _re_match = Regex::new(SECRET_HASH_REGEX)
|
42 |
)]
|
43 |
#[allow(clippy::trivial_regex)]
|
44 |
#[test]
|
518 |
#[allow(clippy::trivial_regex)]
|
519 |
let re_pwd = Regex::new(r"^\.\n").unwrap();
|
547 |
#[allow(clippy::trivial_regex)]
|
548 |
let re_pwd = Regex::new(r"^\.\n").unwrap();
|
31 |
impl RegexList {
|
32 |
#[allow(clippy::trivial_regex)]
|
33 |
pub fn new() -> Self {
|
15 |
#[cfg(feature = "bindings")]
|
16 |
#[allow(clippy::trivial_regex)]
|
17 |
fn prepreprocess(path: &path::Path) -> io::Result<String> {
|
477 |
// registers hits for 1
|
478 |
#[allow(clippy::trivial_regex)]
|
479 |
when.method(GET).path_matches(Regex::new("1").unwrap());
|
77 |
impl ParseCallbacks for Callbacks {
|
78 |
#[allow(clippy::trivial_regex)]
|
79 |
fn int_macro(&self, _name: &str, value: i64) -> Option<IntKind> {
|
107 |
#[allow(clippy::trivial_regex)]
|
108 |
fn enum_variant_behavior(
|
125 |
static RE_OTHER_NEWLINE: Lazy<Regex> = Lazy::new(|| Regex::new(r"(?:\r\n|\r)").unwrap());
|
126 |
#[allow(clippy::trivial_regex)]
|
127 |
static RE_EMPTY_PARAGRAPH: Lazy<Regex> = Lazy::new(|| Regex::new(r"<p></p>").unwrap());
|
251 |
#[allow(non_snake_case)]
|
252 |
#[allow(clippy::trivial_regex)]
|
253 |
#[allow(clippy::single_char_pattern)]
|
630 |
#[allow(non_snake_case)]
|
631 |
#[allow(clippy::trivial_regex)]
|
632 |
#[allow(clippy::single_char_pattern)]
|
118 |
#[allow(non_snake_case)]
|
119 |
#[allow(clippy::trivial_regex)]
|
120 |
#[allow(clippy::single_char_pattern)]
|
83 |
) -> Result<ApiOrder, error::Error> {
|
84 |
#[allow(clippy::trivial_regex)]
|
85 |
let re = regex::Regex::new("<STATUS>").unwrap();
|
260 |
#[allow(clippy::trivial_regex)]
|
261 |
fn from_str(s: &str) -> io::Result<Bytes> {
|
734 |
impl QueryPlan {
|
735 |
#[allow(clippy::trivial_regex)]
|
736 |
pub fn compile_expr(
|
224 |
#[allow(clippy::trivial_regex)]
|
225 |
#[cfg(test)]
|
15 |
#[allow(clippy::trivial_regex)]
|
16 |
pub fn fix_syntax_and_write(out_path: &Path, contents: String) {
|
9 |
impl Match {
|
10 |
#[allow(clippy::trivial_regex)]
|
11 |
pub fn new() -> Result<Self, Box<dyn std::error::Error>> {
|
393 |
#[allow(clippy::trivial_regex)]
|
394 |
static R6: Lazy<Regex> = Lazy::new(|| Regex::new(r#"U_Mat"#).expect("Can't compile regex"));
|
53 |
let mut stdout = smol::Unblock::new(std::io::stdout());
|
54 |
#[allow(clippy::trivial_regex)]
|
55 |
let re = regex::bytes::Regex::new("Elbereth").unwrap();
|
412 |
#[allow(clippy::single_match)]
|
413 |
#[allow(clippy::trivial_regex)]
|
414 |
fn next(&mut self) -> Option<Self::Item> {
|
78 |
#[allow(clippy::trivial_regex)]
|
79 |
let template_pattern = Regex::new(r"\{\}")?;
|
4 |
fn no_force_and_interactive() {
|
5 |
#[allow(clippy::trivial_regex)]
|
6 |
let result = run(Options {
|
468 |
#[allow(clippy::trivial_regex)]
|
469 |
fn act_append_and_select(&mut self, env: &mut ModelEnv) {
|
467 |
#[allow(clippy::trivial_regex)]
|
468 |
fn act_append_and_select(&mut self, env: &mut ModelEnv) {
|
438 |
}
|
439 |
#[allow(clippy::trivial_regex)]
|
440 |
LanguageType::Html
|
265 |
#[test]
|
266 |
#[allow(clippy::trivial_regex)]
|
267 |
fn is_validates_with_regex() {
|
779 |
#[test]
|
780 |
#[allow(clippy::trivial_regex)]
|
781 |
fn test_reader_field_filter() {
|
1 |
#![allow(clippy::trivial_regex)]
|
1 |
#![allow(clippy::trivial_regex)]
|
4 |
#![allow(clippy::trivial_regex)]
|
1 |
#![allow(clippy::trivial_regex)]
|
1 |
#![allow(clippy::trivial_regex)]
|
44 |
fn generate_rules() {
|
45 |
#![allow(clippy::trivial_regex)]
|
46 |
use std::{fs::File, io::Write};
|
1 |
#![allow(clippy::trivial_regex)]
|
2 |
use crate::structures::Word;
|
11 |
clippy::use_self, // False positive on format macro.
|
12 |
clippy::trivial_regex, // Trivial regex added by thiserror::Error.
|
13 |
)]
|
1 |
#![allow(clippy::trivial_regex)]
|
2 |
// FIXME: Write documentation for the unsafe functions.
|
1 |
#![allow(clippy::trivial_regex)]
|
220 |
fn parse_rule(s: &str) -> ParseResult<Rule> {
|
221 |
#![allow(clippy::trivial_regex)]
|
222 |
regex_static!(ARROW, "->");
|
378 |
#![allow(clippy::trivial_regex, clippy::manual_range_contains, clippy::transmute_num_to_bytes)]
|