Skip to content

Commit 5f0b1fc

Browse files
committed
downgrade rand
1 parent 241a890 commit 5f0b1fc

File tree

18 files changed

+30
-74
lines changed

18 files changed

+30
-74
lines changed

Cargo.lock

Lines changed: 6 additions & 50 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ paste = "1.0.6"
143143
serde = { version = "1.0.132", features = ["derive"] }
144144
serde_json = "1.0.73"
145145
url = "2.2.2"
146-
rand = "0.9"
146+
rand = "0.8"
147147
rand_xoshiro = "0.7.0"
148148
hex = "0.4.3"
149149
tempdir = "0.3.7"

examples/postgres/axum-social-with-tests/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ tokio = { version = "1.20.1", features = ["rt-multi-thread", "macros"] }
1313

1414
# Important secondary crates
1515
argon2 = "0.4.1"
16-
rand = "0.8.5"
16+
rand = "0.8"
1717
regex = "1.6.0"
1818
serde = "1.0.140"
1919
serde_with = { version = "2.0.0", features = ["time_0_3"] }

sqlx-core/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ memchr = { version = "2.4.1", default-features = false }
141141
num-bigint = { version = "0.4.0", default-features = false, optional = true, features = ["std"] }
142142
once_cell = "1.9.0"
143143
percent-encoding = "2.1.0"
144-
rand = { version = "0.9", default-features = false, optional = true, features = ["std", "std_rng"] }
144+
rand = { version = "0.8", default-features = false, optional = true, features = ["std", "std_rng"] }
145145
regex = { version = "1.5.5", optional = true }
146146
rsa = { version = "0.9.2", optional = true }
147147
rustls = { version = "0.22.4", optional = true }

sqlx-core/src/lib.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@
44
#![warn(future_incompatible, rust_2018_idioms)]
55
#![allow(clippy::needless_doctest_main, clippy::type_complexity, dead_code)]
66
#![deny(
7-
cast_possible_truncation,
8-
cast_possible_wrap,
9-
cast_precision_loss,
10-
cast_sign_loss
7+
clippy::cast_possible_truncation,
8+
clippy::cast_possible_wrap,
9+
clippy::cast_precision_loss,
10+
clippy::cast_sign_loss
1111
)]
1212
// See `clippy.toml` at the workspace root
1313
#![deny(clippy::disallowed_methods)]

sqlx-core/src/mssql/connection/mod.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,6 @@ impl Debug for MssqlConnection {
2929
}
3030
}
3131

32-
use std::ops::DerefMut;
33-
3432
impl Connection for MssqlConnection {
3533
type Database = Mssql;
3634

sqlx-core/src/mssql/connection/tls_prelogin_stream_wrapper.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ use sqlx_rt::{AsyncRead, AsyncWrite};
1111
#[cfg(feature = "_rt-tokio")]
1212
use sqlx_rt::ReadBuf;
1313

14-
use std::cmp;
1514
use std::io;
1615
use std::pin::Pin;
1716
use std::task::{self, ready, Poll};

sqlx-core/src/mssql/protocol/pre_login.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
use std::default;
21
use std::fmt::{self, Display, Formatter};
32

43
use bytes::{Buf, Bytes};

sqlx-core/src/mssql/types/int.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
use byteorder::{ByteOrder, LittleEndian};
21
use std::any::type_name;
2+
use std::convert::TryFrom;
3+
use std::i16;
34

45
use crate::decode::Decode;
56
use crate::encode::{Encode, IsNull};
@@ -141,7 +142,7 @@ impl Decode<'_, Mssql> for i64 {
141142
.into());
142143
}
143144

144-
buf[..len].copy_from_slice(&bytes_val);
145+
buf[..len].copy_from_slice(bytes_val);
145146
Ok(i64::from_le_bytes(buf))
146147
}
147148
DataType::Numeric | DataType::NumericN | DataType::Decimal | DataType::DecimalN => {

sqlx-core/src/mssql/types/json.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ impl<T> Type<Mssql> for Json<T> {
2727
}
2828
}
2929

30-
impl<'q, T> Encode<'q, Mssql> for Json<T>
30+
impl<T> Encode<'_, Mssql> for Json<T>
3131
where
3232
T: Serialize,
3333
{

0 commit comments

Comments
 (0)