Skip to content

Commit

Permalink
make clippy happy
Browse files Browse the repository at this point in the history
  • Loading branch information
duncan committed Jan 22, 2025
1 parent 9e4161c commit 4d6f58e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion crates/project-model/src/cargo_workspace.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
//! See [`CargoWorkspace`].
use std::{fmt, ops};
use std::str::from_utf8;
use std::{fmt, ops};

use anyhow::Context;
use base_db::Env;
Expand Down
2 changes: 1 addition & 1 deletion crates/rust-analyzer/src/handlers/request.rs
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ pub(crate) fn handle_run_test(
.iter()
.filter_map(|test| {
let (root, remainder) = match test.split_once("::") {
Some((root, remainder)) => (root.to_string(), Some(remainder)),
Some((root, remainder)) => (root.to_owned(), Some(remainder)),
None => (test.clone(), None),
};
if let Some(target) = find_test_target(&root, cargo) {
Expand Down

0 comments on commit 4d6f58e

Please sign in to comment.