From 7beba0c6eb45ec65dc7336846811ae50f5131dba Mon Sep 17 00:00:00 2001 From: kud1ing Date: Tue, 10 Nov 2020 15:12:04 +0100 Subject: [PATCH] Document that `optional()` requires import of `rusqlite::OptionalExtension` Document that `optional()` requires import of `rusqlite::OptionalExtension`. --- src/statement.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/statement.rs b/src/statement.rs index 4591e85..c7b2f52 100644 --- a/src/statement.rs +++ b/src/statement.rs @@ -438,7 +438,8 @@ impl Statement<'_> { /// /// Returns `Err(QueryReturnedNoRows)` if no results are returned. If the /// query truly is optional, you can call `.optional()` on the result of - /// this to get a `Result>`. + /// this to get a `Result>` (requires that the trait `rusqlite::OptionalExtension` + /// is imported). /// /// # Failure /// @@ -464,7 +465,8 @@ impl Statement<'_> { /// /// Returns `Err(QueryReturnedNoRows)` if no results are returned. If the /// query truly is optional, you can call `.optional()` on the result of - /// this to get a `Result>`. + /// this to get a `Result>` (requires that the trait `rusqlite::OptionalExtension` + /// is imported). /// /// # Failure ///