Skip to content

Commit 842eace

Browse files
committed
fix ci
1 parent 4bae134 commit 842eace

File tree

3 files changed

+4
-4
lines changed
  • .github/workflows
  • postgres-derive-test/src
  • postgres-protocol/src/authentication

3 files changed

+4
-4
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ jobs:
5555
- run: docker compose up -d
5656
- uses: sfackler/actions/rustup@master
5757
with:
58-
version: 1.62.0
58+
version: 1.63.0
5959
- run: echo "::set-output name=version::$(rustc --version)"
6060
id: rust-version
6161
- uses: actions/cache@v1

postgres-derive-test/src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ where
1414
T: PartialEq + FromSqlOwned + ToSql + Sync,
1515
S: fmt::Display,
1616
{
17-
for &(ref val, ref repr) in checks.iter() {
17+
for (val, repr) in checks.iter() {
1818
let stmt = conn
1919
.prepare(&format!("SELECT {}::{}", *repr, sql_type))
2020
.unwrap();
@@ -38,7 +38,7 @@ pub fn test_type_asymmetric<T, F, S, C>(
3838
S: fmt::Display,
3939
C: Fn(&T, &F) -> bool,
4040
{
41-
for &(ref val, ref repr) in checks.iter() {
41+
for (val, repr) in checks.iter() {
4242
let stmt = conn
4343
.prepare(&format!("SELECT {}::{}", *repr, sql_type))
4444
.unwrap();

postgres-protocol/src/authentication/sasl.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -359,7 +359,7 @@ impl<'a> Parser<'a> {
359359
}
360360

361361
fn posit_number(&mut self) -> io::Result<u32> {
362-
let n = self.take_while(|c| matches!(c, '0'..='9'))?;
362+
let n = self.take_while(|c| c.is_ascii_digit())?;
363363
n.parse()
364364
.map_err(|e| io::Error::new(io::ErrorKind::InvalidInput, e))
365365
}

0 commit comments

Comments
 (0)