Skip to content

Commit 49d08a6

Browse files
prevent warnings (#1198)
1 parent 07290d1 commit 49d08a6

File tree

4 files changed

+3
-5
lines changed

4 files changed

+3
-5
lines changed

pgml-dashboard/src/components/notifications/banner/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
use crate::{Notification, NotificationLevel};
1+
use crate::Notification;
22
use pgml_components::component;
33
use sailfish::TemplateOnce;
44

pgml-dashboard/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
extern crate rocket;
33

44
use rocket::form::Form;
5-
use rocket::http::{Cookie, CookieJar};
5+
use rocket::http::CookieJar;
66
use rocket::response::Redirect;
77
use rocket::route::Route;
88
use rocket::serde::json::Json;

pgml-dashboard/src/utils/cookies.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
use rocket::http::{Cookie, CookieJar};
2-
use rocket::serde::json::Json;
32

43
pub struct Notifications {}
54

@@ -11,7 +10,7 @@ impl Notifications {
1110
}
1211

1312
pub fn get_viewed(cookies: &CookieJar<'_>) -> Vec<String> {
14-
let mut viewed = match cookies.get_private("session") {
13+
let viewed = match cookies.get_private("session") {
1514
Some(session) => {
1615
match serde_json::from_str::<serde_json::Value>(session.value()).unwrap()
1716
["notifications"]

pgml-dashboard/templates/layout/base.html

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
<%
22
use crate::components::navigation::navbar::marketing::Marketing as MarketingNavbar;
3-
use crate::components::notifications::Banner;
43
%>
54
<!DOCTYPE html>
65
<html lang="en-US" data-bs-theme="dark">

0 commit comments

Comments
 (0)