Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit49d08a6

Browse files
prevent warnings (#1198)
1 parent07290d1 commit49d08a6

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-
usecrate::{Notification,NotificationLevel};
1+
usecrate::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
externcrate 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
pubstructNotifications{}
54

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

1312
pubfnget_viewed(cookies:&CookieJar<'_>) ->Vec<String>{
14-
letmutviewed =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
<htmllang="en-US"data-bs-theme="dark">

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp