Skip to content

Commit

Permalink
more clippy changes
Browse files Browse the repository at this point in the history
  • Loading branch information
0b10011 committed May 6, 2024
1 parent 3c1878b commit af33374
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion tests/borrow.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ struct Data<'a> {
#[test]
fn field() {
let name = "Liv";
let user = User { name: &name };
let user = User { name };
let data = Data { user: &user };

assert_eq!(format!("{}", data), "Liv");
Expand Down
4 changes: 2 additions & 2 deletions tests/expansion.rs
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
use std::io::Write;
use std::{
error::Error,
fs::{self, DirEntry},
path::{Path, PathBuf},
fs::{self},
path::Path,
process::{Command, Output},
};

Expand Down

0 comments on commit af33374

Please sign in to comment.