Skip to content

Commit

Permalink
Fix CI
Browse files Browse the repository at this point in the history
  • Loading branch information
c410-f3r committed Sep 16, 2024
1 parent e2ce9f3 commit 7738f3d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
10 changes: 5 additions & 5 deletions wtx/src/database/client/postgres/db_error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ pub struct DbError {
message: Range<u32>,
position: Option<ErrorPosition>,
routine: Option<Range<u32>>,
schema: Option<Range<u32>>,
scheme: Option<Range<u32>>,
severity_localized: Range<u32>,
severity_nonlocalized: Option<Severity>,
table: Option<Range<u32>>,
Expand Down Expand Up @@ -154,9 +154,9 @@ impl DbError {
/// If the error was associated with a specific database object, the name of the schema
/// containing that object, if any.
#[inline]
pub fn schema(&self) -> Option<&str> {
pub fn scheme(&self) -> Option<&str> {
self
.schema
.scheme
.as_ref()
.and_then(|range| self.buffer.get(_usize_range_from_u32_range(range.clone())))
}
Expand Down Expand Up @@ -211,7 +211,7 @@ impl Debug for DbError {
.field("message", &self.message())
.field("position", &self.position())
.field("routine", &self.routine())
.field("schema", &self.schema())
.field("schema", &self.scheme())
.field("severity_localized", &self.severity_localized())
.field("severity_nonlocalized", &self.severity_nonlocalized())
.field("table", &self.table())
Expand Down Expand Up @@ -323,7 +323,7 @@ impl TryFrom<&str> for DbError {
Some(position) => Some(ErrorPosition::Original(position)),
},
routine,
schema,
scheme: schema,
table,
r#where,
})
Expand Down
6 changes: 3 additions & 3 deletions wtx/src/misc/uri.rs
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ where
///
/// ```rust
/// let uri = wtx::misc::Uri::new("foo://user:password@hostname:80/path?query=value#hash");
/// assert_eq!(uri.href(), "/path?query=value#hash");
/// assert_eq!(uri.relative_reference(), "/path?query=value#hash");
/// ```
#[inline]
pub fn relative_reference(&self) -> &str {
Expand All @@ -180,7 +180,7 @@ where
///
/// ```rust
/// let uri = wtx::misc::Uri::new("");
/// assert_eq!(uri.href(), "/");
/// assert_eq!(uri.relative_reference_slash(), "/");
/// ```
#[inline]
pub fn relative_reference_slash(&self) -> &str {
Expand All @@ -196,7 +196,7 @@ where
///
/// ```rust
/// let uri = wtx::misc::Uri::new("foo://user:password@hostname:80/path?query=value#hash");
/// assert_eq!(uri.schema(), "foo");
/// assert_eq!(uri.scheme(), "foo");
/// ```
#[inline]
pub fn scheme(&self) -> &str {
Expand Down

0 comments on commit 7738f3d

Please sign in to comment.