Skip to content

Commit

Permalink
Fix a complaint from clippy
Browse files Browse the repository at this point in the history
error: the borrowed expression implements the required traits
  --> x11rb/tests/resource_manager.rs:96:13
   |
96 |             &dir,
   |             ^^^^ help: change this to: `dir`
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
   = note: `-D clippy::needless-borrow` implied by `-D warnings`

Signed-off-by: Uli Schlachter <psychon@znc.in>
  • Loading branch information
psychon committed Nov 4, 2022
1 parent 7d0dafa commit 1e5dff3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion x11rb/tests/resource_manager.rs
Expand Up @@ -93,7 +93,7 @@ mod test {
fn include_loop() {
let dir = get_temporary_dir("include_loop");
let file = write_file(
&dir,
dir,
"loop.xresources",
b"First: 1\n! Provoke an endless chain of self-inclusion\n#include \"loop.xresources\"\nSecond: 2\n",
);
Expand Down

0 comments on commit 1e5dff3

Please sign in to comment.