cargo clippy
This commit is contained in:
parent
51b5d6de71
commit
f6492fddc1
|
@ -43,7 +43,7 @@ impl Algo for Nederlandskie {
|
|||
author_did: &str,
|
||||
post: &bluesky::PostRecord,
|
||||
) -> Result<bool> {
|
||||
Ok(self.is_post_in_russian(&post)
|
||||
Ok(self.is_post_in_russian(post)
|
||||
|| self.is_profile_residing_in_netherlands(author_did).await?)
|
||||
}
|
||||
|
||||
|
|
|
@ -56,7 +56,7 @@ async fn main() -> Result<()> {
|
|||
}
|
||||
|
||||
for did in &args.did {
|
||||
database.force_profile_country(&did, &args.country).await?;
|
||||
database.force_profile_country(did, &args.country).await?;
|
||||
|
||||
println!(
|
||||
"Stored '{}' as the country for profile with did '{}'",
|
||||
|
|
|
@ -19,13 +19,13 @@ pub struct Bluesky {
|
|||
}
|
||||
|
||||
impl Bluesky {
|
||||
pub const XRPC_HOST: &str = "https://bsky.social";
|
||||
pub const FIREHOSE_HOST: &str = "wss://bsky.network";
|
||||
pub const XRPC_HOST: &'static str = "https://bsky.social";
|
||||
pub const FIREHOSE_HOST: &'static str = "wss://bsky.network";
|
||||
|
||||
pub fn unauthenticated() -> Self {
|
||||
Self {
|
||||
agent: AtpAgent::new(
|
||||
ReqwestClient::new(Self::XRPC_HOST.to_owned()),
|
||||
ReqwestClient::new(Self::XRPC_HOST),
|
||||
MemorySessionStore::default(),
|
||||
),
|
||||
}
|
||||
|
@ -33,7 +33,7 @@ impl Bluesky {
|
|||
|
||||
pub async fn login(handle: &str, password: &str) -> Result<Self> {
|
||||
let agent = AtpAgent::new(
|
||||
ReqwestClient::new(Self::XRPC_HOST.to_owned()),
|
||||
ReqwestClient::new(Self::XRPC_HOST),
|
||||
MemorySessionStore::default(),
|
||||
);
|
||||
agent.login(handle, password).await?;
|
||||
|
|
Loading…
Reference in New Issue