Be more consistent with method names

This commit is contained in:
asonix 2020-03-15 21:13:11 -05:00
parent 755ab59d4c
commit 3a909b9be2
3 changed files with 6 additions and 6 deletions

View file

@ -1,7 +1,7 @@
[package]
name = "actix-webfinger"
description = "Types and helpers to create and fetch Webfinger resources"
version = "0.3.0-alpha.1"
version = "0.3.0-alpha.2"
license = "GPL-3.0"
authors = ["asonix <asonix@asonix.dog>"]
repository = "https://git.asonix.dog/Aardwolf/actix-webfinger"

View file

@ -15,7 +15,7 @@ First, add Actix Webfinger as a dependency
[dependencies]
actix = "0.10.0-alpha.1"
actix-web = "3.0.0-alpha.1"
actix-webfinger = "0.3.0-alpha.1"
actix-webfinger = "0.3.0-alpha.2"
```
Then use it in your application

View file

@ -15,7 +15,7 @@
//! [dependencies]
//! actix = "0.10.0-alpha.1"
//! actix-web = "3.0.0-alpha.1"
//! actix-webfinger = "0.3.0-alpha.1"
//! actix-webfinger = "0.3.0-alpha.2"
//! ```
//!
//! Then use it in your application
@ -519,7 +519,7 @@ impl Webfinger {
}
/// Set a salmon link from this Webfinger
pub fn set_salmon(&mut self, href: &str) -> &mut Self {
pub fn add_salmon(&mut self, href: &str) -> &mut Self {
self.links.push(Link {
rel: "salmon".to_owned(),
href: Some(href.to_owned()),
@ -535,7 +535,7 @@ impl Webfinger {
}
/// Set a magic public key link for this Webfinger
pub fn set_magic_public_key(&mut self, magic_public_key: &str) -> &mut Self {
pub fn add_magic_public_key(&mut self, magic_public_key: &str) -> &mut Self {
self.links.push(Link {
rel: "magic-public-key".to_owned(),
href: Some(format!(
@ -554,7 +554,7 @@ impl Webfinger {
}
/// Set an ostatus link for this Webfinger
pub fn set_ostatus(&mut self, template: &str) -> &mut Self {
pub fn add_ostatus(&mut self, template: &str) -> &mut Self {
self.links.push(Link {
rel: "http://ostatus.org/schema/1.0/subscribe".to_owned(),
href: None,