mirror of
https://github.com/tauri-apps/plugins-workspace.git
synced 2026-10-10 22:38:44 +02:00
fix: clippy
This commit is contained in:
1 file changed
+1
-1
@@ -1830,7 +1830,7 @@ fn read_until_bytes(
|
|||||||
|
|
||||||
/// Whether `buf` ends with `bytes`, starting on a multiple of `bytes.len()`.
|
/// Whether `buf` ends with `bytes`, starting on a multiple of `bytes.len()`.
|
||||||
fn ends_with_aligned(buf: &[u8], bytes: &[u8]) -> bool {
|
fn ends_with_aligned(buf: &[u8], bytes: &[u8]) -> bool {
|
||||||
buf.ends_with(bytes) && buf.len() % bytes.len() == 0
|
buf.ends_with(bytes) && buf.len().is_multiple_of(bytes.len())
|
||||||
}
|
}
|
||||||
|
|
||||||
struct StdLinesResource(Mutex<LinesBytes<BufReader<File>>>);
|
struct StdLinesResource(Mutex<LinesBytes<BufReader<File>>>);
|
||||||
|
|||||||
Reference in new issue
Block a user