From 8609e7ed2cedf28aa655e5b3f15f130558dd8d4c Mon Sep 17 00:00:00 2001 From: Fuwn Date: Mon, 17 Jun 2024 06:44:09 -0700 Subject: refactor: remove file header --- src/modules/blog/config.rs | 18 ------------------ src/modules/blog/module.rs | 20 +------------------- 2 files changed, 1 insertion(+), 37 deletions(-) (limited to 'src/modules/blog') diff --git a/src/modules/blog/config.rs b/src/modules/blog/config.rs index 34d9373..20c3bd4 100644 --- a/src/modules/blog/config.rs +++ b/src/modules/blog/config.rs @@ -1,21 +1,3 @@ -// This file is part of Locus . -// Copyright (C) 2022-2022 Fuwn -// -// This program is free software: you can redistribute it and/or modify -// it under the terms of the GNU General Public License as published by -// the Free Software Foundation, version 3. -// -// This program is distributed in the hope that it will be useful, but -// WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// General Public License for more details. -// -// You should have received a copy of the GNU General Public License -// along with this program. If not, see . -// -// Copyright (C) 2022-2022 Fuwn -// SPDX-License-Identifier: GPL-3.0-only - use std::collections::HashMap; use serde::{Deserialize, Serialize}; diff --git a/src/modules/blog/module.rs b/src/modules/blog/module.rs index 6d3c253..e90c380 100644 --- a/src/modules/blog/module.rs +++ b/src/modules/blog/module.rs @@ -1,21 +1,3 @@ -// This file is part of Locus . -// Copyright (C) 2022-2022 Fuwn -// -// This program is free software: you can redistribute it and/or modify -// it under the terms of the GNU General Public License as published by -// the Free Software Foundation, version 3. -// -// This program is distributed in the hope that it will be useful, but -// WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// General Public License for more details. -// -// You should have received a copy of the GNU General Public License -// along with this program. If not, see . -// -// Copyright (C) 2022-2022 Fuwn -// SPDX-License-Identifier: GPL-3.0-only - use { crate::{ modules::blog::config::Blog, @@ -191,7 +173,7 @@ pub fn module(router: &mut windmark::router::Router) { {0}'s RSS feed\n\n=> {} here!", blog, entries_clone.len(), - description.clone().unwrap_or_else(String::new), + description.clone().unwrap_or_default(), entries_clone .keys() .map(Clone::clone) -- cgit v1.2.3