Skip to content

Commit c88bfa3

Browse files
committed
docs(stack-encrypt): name the error a wrong query type gives, as the compiler now words it
The `Takes` doc quoted the error over `ToOwned::Owned`. The operator methods take their value through `QueryInput` since the review of #1595, so the compiler names `QueryInput::Value`, as the trybuild snapshot does. Refs #1596.
1 parent 9cab148 commit c88bfa3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎packages/stack-encrypt/src/marker.rs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -370,7 +370,7 @@ impl<V> QueryValue<V> for TakesAny {}
370370
///
371371
/// A value of another type is refused at compile time. Since `V` is the one
372372
/// type the marker accepts, the compiler reports it as a mismatch of the
373-
/// value's owned form: "type mismatch resolving `<u64 as ToOwned>::Owned
373+
/// value's query form: "type mismatch resolving `<u64 as QueryInput>::Value
374374
/// == String`".
375375
pub struct Takes<V>(PhantomData<fn() -> V>);
376376
impl<V> value_sealed::Sealed<V> for Takes<V> {}

0 commit comments

Comments
 (0)