diff --git a/crates/jacquard/src/client.rs b/crates/jacquard/src/client.rs index f3077a4e..be9d76c5 100644 --- a/crates/jacquard/src/client.rs +++ b/crates/jacquard/src/client.rs @@ -376,7 +376,7 @@ pub type VecPutResponse = <::PutRequest as XrpcRequest>::Resp /// let output = agent.create_record(post, None).await?; /// /// // Read it back -/// let response = agent.get_record::(output.uri).await?; +/// let response = agent.get_record::(&output.uri).await?; /// let record = response.parse()?; /// println!("Post: {}", record.value.text); /// # Ok(()) @@ -477,7 +477,7 @@ pub trait AgentSessionExt: AgentSession + IdentityResolver { /// # async fn main() -> Result<(), Box> { /// # let agent: BasicClient = todo!(); /// let uri = AtUri::new_static("at://did:plc:xyz/app.bsky.feed.post/3l5bqm7lepk2c").unwrap(); - /// let response = agent.get_record::(uri).await?; + /// let response = agent.get_record::(&uri).await?; /// let output = response.parse()?; // PostGetRecordOutput<'_> borrowing from buffer /// println!("Post text: {}", output.value.text); /// @@ -601,7 +601,7 @@ pub trait AgentSessionExt: AgentSession + IdentityResolver { /// # let agent: BasicClient = todo!(); /// let uri = AtUri::new_static("at://did:plc:xyz/app.bsky.actor.profile/self").unwrap(); /// // Update profile record in-place - /// agent.update_record::(uri, |profile| { + /// agent.update_record::(&uri, |profile| { /// profile.display_name = Some(CowStr::from("New Name")); /// profile.description = Some(CowStr::from("Updated bio")); /// }).await?; @@ -1023,7 +1023,7 @@ impl BasicClient { /// # async fn main() -> Result<(), Box> { /// let client = BasicClient::unauthenticated(); /// let uri = AtUri::new_static("at://did:plc:xyz/app.bsky.feed.post/3l5abc").unwrap(); - /// let response = client.get_record::>(uri).await?; + /// let response = client.get_record::>(&uri).await?; /// # Ok(()) /// # } /// ``` diff --git a/examples/read_whitewind_post.rs b/examples/read_whitewind_post.rs index c18d920f..d72c4ffe 100644 --- a/examples/read_whitewind_post.rs +++ b/examples/read_whitewind_post.rs @@ -22,7 +22,7 @@ async fn main() -> miette::Result<()> { let agent = BasicClient::unauthenticated(); // Use Agent's get_record helper with the at:// URI - let response = agent.get_record::(uri).await?; + let response = agent.get_record::(&uri).await?; let output = response.into_output()?; println!("📚 WhiteWind Blog Entry\n"); diff --git a/examples/update_profile.rs b/examples/update_profile.rs index 10764b3c..ce58fd1e 100644 --- a/examples/update_profile.rs +++ b/examples/update_profile.rs @@ -48,7 +48,7 @@ async fn main() -> miette::Result<()> { // Update profile in-place using the fetch-modify-put pattern agent - .update_record::(uri, |profile| { + .update_record::(&uri, |profile| { if let Some(name) = &args.display_name { profile.display_name = Some(CowStr::from(name.clone())); }