Fix PluginMetadata::set_group arg type

This commit is contained in:
Oliver Hamlet
2025-03-25 20:56:11 +00:00
parent e28c0f498b
commit 64b14e3770
+3 -3
View File
@@ -96,8 +96,8 @@ impl PluginMetadata {
}
/// Set the plugin's group.
pub fn set_group(&mut self, group: &str) {
self.group = Some(group.to_string())
pub fn set_group(&mut self, group: String) {
self.group = Some(group)
}
/// Unsets the plugin's group, so that it is implicitly a member of the
@@ -456,7 +456,7 @@ mod tests {
#[test]
fn should_emit_group_if_set() {
let mut plugin = PluginMetadata::new("test.esp").unwrap();
plugin.set_group("group1");
plugin.set_group("group1".into());
let yaml = emit(&plugin);
assert_eq!(