You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Trying to use firebase in a project and get following error:
error[E0308]: mismatched types
--> /home/shinmen/.cargo/registry/src/github.com-1ecc6299db9ec823/firestore-0.11.0/src/db/transaction.rs:113:62
|
113 | transaction_span.record("/firestore/transaction_id", hex_trans_id);
| ------ ^^^^^^^^^^^^
| | |
| | expected reference, found struct `std::string::String`
| | help: consider borrowing here: `&hex_trans_id`
| arguments to this function are incorrect
|
= note: expected reference `&_`
found struct `std::string::String`
note: associated function defined here
--> /home/shinmen/.cargo/registry/src/github.com-1ecc6299db9ec823/tracing-0.1.35/src/span.rs:1194:12
|
1194 | pub fn record<Q: ?Sized, V>(&self, field: &Q, value: &V) -> &Self
| ^^^^^^
error[E0277]: the size for values of type `str` cannot be known at compilation time
--> /home/shinmen/.cargo/registry/src/github.com-1ecc6299db9ec823/firestore-0.11.0/src/db/transaction.rs:153:35
|
153 | self.transaction_span.record(
| ^^^^^^ doesn't have a size known at compile-time
|
= help: the trait `Sized` is not implemented for `str`
note: required by a bound in `tracing::Span::record`
--> /home/shinmen/.cargo/registry/src/github.com-1ecc6299db9ec823/tracing-0.1.35/src/span.rs:1194:30
|
1194 | pub fn record<Q: ?Sized, V>(&self, field: &Q, value: &V) -> &Self
| ^ required by this bound in `tracing::Span::record`
Some errors have detailed explanations: E0277, E0308.
For more information about an error, try `rustc --explain E0277`.
error: could not compile `firestore` due to 2 previous errors
The text was updated successfully, but these errors were encountered:
Trying to use firebase in a project and get following error:
The text was updated successfully, but these errors were encountered: