mirror of
https://github.com/launchbadge/sqlx.git
synced 2026-03-31 15:39:34 +00:00
groundwork for 0.9.0-alpha.1 (#3821)
* chore: bump version to `0.9.0-alpha.1` * chore: delete unused `sqlx-bench` package * chore: set `rust-version` to 1.85 for all crates * fix: lots of new Clippy warnings * fix: lots more Clippy warnings * fix(cli): add `_sqlite` feature * fix: lots, *lots* more Clippy warnings * fix(core): warning in `tls_rustls` * breaking: delete runtime+TLS combination features * chore: don't re-export unstable `TransactionManager` trait * chore: 0.9.0-alplha.1 CHANGELOG * chore: increase MSRV further to 1.86 * fix: more clippy warnings
This commit is contained in:
@@ -6,6 +6,7 @@ license.workspace = true
|
||||
edition.workspace = true
|
||||
authors.workspace = true
|
||||
repository.workspace = true
|
||||
rust-version.workspace = true
|
||||
|
||||
[features]
|
||||
default = []
|
||||
|
||||
@@ -15,9 +15,9 @@ pub(crate) fn resolve_path(path: impl AsRef<Path>, err_span: Span) -> syn::Resul
|
||||
// requires `proc_macro::SourceFile::path()` to be stable
|
||||
// https://github.com/rust-lang/rust/issues/54725
|
||||
if path.is_relative()
|
||||
&& !path
|
||||
&& path
|
||||
.parent()
|
||||
.map_or(false, |parent| !parent.as_os_str().is_empty())
|
||||
.is_none_or(|parent| parent.as_os_str().is_empty())
|
||||
{
|
||||
return Err(syn::Error::new(
|
||||
err_span,
|
||||
|
||||
@@ -246,13 +246,9 @@ fn parse_args(attr_args: AttributeArgs) -> syn::Result<Args> {
|
||||
|
||||
fn recurse_lit_lookup(expr: Expr) -> Option<Lit> {
|
||||
match expr {
|
||||
Expr::Lit(syn::ExprLit { lit, .. }) => {
|
||||
return Some(lit);
|
||||
}
|
||||
Expr::Group(syn::ExprGroup { expr, .. }) => {
|
||||
return recurse_lit_lookup(*expr);
|
||||
}
|
||||
_ => return None,
|
||||
Expr::Lit(syn::ExprLit { lit, .. }) => Some(lit),
|
||||
Expr::Group(syn::ExprGroup { expr, .. }) => recurse_lit_lookup(*expr),
|
||||
_ => None,
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user