Skip to content

Commit a008075

Browse files
author
Alexei Pastuchov
committed
replace deprecated std::error::Error::description by Display's to_string()
1 parent 6c8cb7b commit a008075

File tree

1 file changed

+1
-1
lines changed
  • wundergraph_cli/src/infer_schema_internals

1 file changed

+1
-1
lines changed

wundergraph_cli/src/infer_schema_internals/sqlite.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,7 @@ fn load_table_names_returns_error_when_given_schema_name() {
277277
let table_names = load_table_names(&conn, Some("stuff"));
278278
match table_names {
279279
Ok(_) => panic!("Expected load_table_names to return an error"),
280-
Err(e) => assert!(e.description().starts_with(
280+
Err(e) => assert!(e.to_string().starts_with(
281281
"sqlite cannot infer \
282282
schema for databases"
283283
)),

0 commit comments

Comments
 (0)