We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e50c116 commit f84df49Copy full SHA for f84df49
ctest-next/src/rustc_queries.rs
@@ -85,7 +85,7 @@ pub fn rustc_host() -> Result<String> {
85
.nth(4)
86
.unwrap()
87
.split(':')
88
- .last()
+ .next_back()
89
.map(|s| s.trim())
90
.unwrap();
91
ctest-next/src/translator.rs
@@ -177,6 +177,7 @@ impl Translator {
177
/// This method is only used for translating expressions inside of
178
/// array brackets, and will fail for expressions not allowed inside of
179
/// those brackets.
180
+ #[expect(clippy::only_used_in_recursion)]
181
fn translate_expr(&self, expr: &syn::Expr) -> String {
182
match expr {
183
syn::Expr::Lit(l) => match &l.lit {
0 commit comments