Skip to content

Commit a896eb3

Browse files
committed
core: Fix unused variable warning
1 parent 6527fc3 commit a896eb3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libcore/option.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ fn test_unwrap_resource() {
130130
{
131131
let x = r(i);
132132
let opt = some(x);
133-
let y = unwrap(opt);
133+
let _y = unwrap(opt);
134134
}
135135
assert *i == 1;
136136
}

0 commit comments

Comments
 (0)