This commit is contained in:
Steven Fackler 2023-02-25 10:10:04 -05:00
parent 4bae134f50
commit 842eacefc8
No known key found for this signature in database
GPG Key ID: 408917B7276A5226
3 changed files with 4 additions and 4 deletions

View File

@ -55,7 +55,7 @@ jobs:
- run: docker compose up -d
- uses: sfackler/actions/rustup@master
with:
version: 1.62.0
version: 1.63.0
- run: echo "::set-output name=version::$(rustc --version)"
id: rust-version
- uses: actions/cache@v1

View File

@ -14,7 +14,7 @@ where
T: PartialEq + FromSqlOwned + ToSql + Sync,
S: fmt::Display,
{
for &(ref val, ref repr) in checks.iter() {
for (val, repr) in checks.iter() {
let stmt = conn
.prepare(&format!("SELECT {}::{}", *repr, sql_type))
.unwrap();
@ -38,7 +38,7 @@ pub fn test_type_asymmetric<T, F, S, C>(
S: fmt::Display,
C: Fn(&T, &F) -> bool,
{
for &(ref val, ref repr) in checks.iter() {
for (val, repr) in checks.iter() {
let stmt = conn
.prepare(&format!("SELECT {}::{}", *repr, sql_type))
.unwrap();

View File

@ -359,7 +359,7 @@ impl<'a> Parser<'a> {
}
fn posit_number(&mut self) -> io::Result<u32> {
let n = self.take_while(|c| matches!(c, '0'..='9'))?;
let n = self.take_while(|c| c.is_ascii_digit())?;
n.parse()
.map_err(|e| io::Error::new(io::ErrorKind::InvalidInput, e))
}