Skip to content

Commit eebb7ca

Browse files
committed
chore: fix compiler warnings
1 parent 5ce88b8 commit eebb7ca

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

tests/src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ fn create_test_spaces() -> Result<(), Error> {
5656
SpaceFieldFormat::new("id", SpaceFieldType::Unsigned),
5757
SpaceFieldFormat::new("text", SpaceFieldType::String),
5858
]);
59-
let mut test_s1 = match Space::create("test_s1", &test_s1_opts) {
59+
let test_s1 = match Space::create("test_s1", &test_s1_opts) {
6060
Ok(s) => s,
6161
Err(e) => return Err(e),
6262
};
@@ -280,7 +280,7 @@ pub extern "C" fn start(l: *mut ffi_lua::lua_State) -> c_int {
280280
Ok(success) => success,
281281
Err(e) => {
282282
// Clenaup without handling error to avoid code mess.
283-
drop_test_spaces();
283+
let _ = drop_test_spaces();
284284
unsafe { ffi_lua::luaL_error(l, e.to_string().as_ptr() as *const c_schar) };
285285
return 0;
286286
}

tests/src/test_box.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ use rand::Rng;
22

33
use tarantool::index::{IndexOptions, IteratorType};
44
use tarantool::sequence::Sequence;
5-
use tarantool::space::{Space, SpaceCreateOptions, SpaceFieldFormat, SpaceFieldType, SystemSpace};
5+
use tarantool::space::{Space, SpaceCreateOptions, SystemSpace};
66
use tarantool::tuple::Tuple;
77

88
use crate::common::{QueryOperation, S1Record, S2Key, S2Record};
@@ -517,13 +517,13 @@ pub fn test_space_drop() {
517517

518518
pub fn test_index_create_drop() {
519519
let space_opts = SpaceCreateOptions::default();
520-
let mut space = Space::create("new_space_7", &space_opts).unwrap();
520+
let space = Space::create("new_space_7", &space_opts).unwrap();
521521

522522
let index_opts = IndexOptions::default();
523523
let create_result = space.create_index("new_index", &index_opts);
524524

525525
if create_result.is_err() {
526-
panic!(dbg!(create_result.err()));
526+
panic!("{:?}", create_result.err());
527527
}
528528
assert_eq!(create_result.is_ok(), true);
529529

tests/src/test_coio.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
use std::convert::TryInto;
2-
use std::io::{self, Read, Write};
2+
use std::io::{Read, Write};
33
use std::net::{TcpListener, TcpStream};
44
use std::os::unix::io::{AsRawFd, FromRawFd};
55
use std::os::unix::net::UnixStream;

0 commit comments

Comments
 (0)