Skip to content

Commit d675370

Browse files
committed
Fix more compilation warnings
1 parent 63c23c4 commit d675370

File tree

5 files changed

+5
-16
lines changed

5 files changed

+5
-16
lines changed

crates/core/src/schema/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ use alloc::vec::Vec;
55
use serde::Deserialize;
66
use sqlite::ResultCode;
77
use sqlite_nostd as sqlite;
8-
pub use table_info::{Column, DiffIncludeOld, Table, TableInfoFlags};
8+
pub use table_info::{DiffIncludeOld, Table, TableInfoFlags};
99

1010
#[derive(Deserialize)]
1111
pub struct Schema {

crates/core/src/sync/operations.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1+
use alloc::format;
12
use alloc::string::String;
2-
use alloc::{borrow::Cow, format};
33
use num_traits::Zero;
44
use sqlite_nostd::Connection;
55
use sqlite_nostd::{self as sqlite, ResultCode};

crates/core/src/sync/storage_adapter.rs

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
11
use core::{assert_matches::debug_assert_matches, fmt::Display};
22

3-
use alloc::{
4-
string::{String, ToString},
5-
vec::Vec,
6-
};
7-
use num_traits::Zero;
3+
use alloc::{string::ToString, vec::Vec};
84
use serde::Serialize;
95
use sqlite_nostd::{self as sqlite, Connection, ManagedStmt, ResultCode};
106
use streaming_iterator::StreamingIterator;
@@ -13,10 +9,7 @@ use crate::{
139
error::SQLiteError,
1410
ext::SafeManagedStmt,
1511
operations::delete_bucket,
16-
sync::{
17-
checkpoint::{validate_checkpoint, ChecksumMismatch},
18-
Checksum,
19-
},
12+
sync::checkpoint::{validate_checkpoint, ChecksumMismatch},
2013
sync_local::{PartialSyncOperation, SyncOperation},
2114
};
2215

crates/core/src/sync/streaming_sync.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,11 @@ use crate::{bson, error::SQLiteError, kv::client_id, sync::checkpoint::OwnedBuck
1818
use sqlite_nostd::{self as sqlite, ResultCode};
1919

2020
use super::{
21-
bucket_priority::BucketPriority,
2221
interface::{Instruction, LogSeverity, StreamingSyncRequest, SyncControlRequest, SyncEvent},
23-
line::{BucketChecksum, Checkpoint, CheckpointDiff, SyncLine},
22+
line::{Checkpoint, CheckpointDiff, SyncLine},
2423
operations::insert_bucket_operations,
2524
storage_adapter::{StorageAdapter, SyncLocalResult},
2625
sync_status::{SyncDownloadProgress, SyncProgressFromCheckpoint, SyncStatusContainer},
27-
Checksum,
2826
};
2927

3028
/// The sync client implementation, responsible for parsing lines received by the sync service and

crates/core/src/util.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
extern crate alloc;
22

3-
use core::ptr::{self, null_mut};
4-
53
use alloc::format;
64
use alloc::string::String;
75

0 commit comments

Comments
 (0)