update to edition 2021
This commit is contained in:
parent
b4faa2f459
commit
26123ce229
2
defs.bzl
2
defs.bzl
@ -18,7 +18,7 @@ def setup_deps():
|
||||
versions.check(minimum_bazel_version = "3.7.0")
|
||||
|
||||
rust_repositories(
|
||||
edition = "2018",
|
||||
edition = "2021",
|
||||
include_rustc_srcs = False,
|
||||
)
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
[package]
|
||||
name = "rsbridge"
|
||||
version = "0.0.0"
|
||||
edition = "2018"
|
||||
edition = "2021"
|
||||
authors = ["Ankitects Pty Ltd and contributors <https://help.ankiweb.net>"]
|
||||
license = "AGPL-3.0-or-later"
|
||||
description = "Anki's Rust library code Python bindings"
|
||||
|
@ -2,7 +2,7 @@
|
||||
name = "anki"
|
||||
version = "0.1.0"
|
||||
build = "build.rs"
|
||||
edition = "2018"
|
||||
edition = "2021"
|
||||
|
||||
[target.'cfg(windows)'.dependencies]
|
||||
winapi = {version = "0.3", features = ["wincon"]}
|
||||
|
@ -1,7 +1,7 @@
|
||||
[package]
|
||||
name = "anki"
|
||||
version = "0.0.0"
|
||||
edition = "2018"
|
||||
edition = "2021"
|
||||
authors = ["Ankitects Pty Ltd and contributors"]
|
||||
license = "AGPL-3.0-or-later"
|
||||
description = "Anki's Rust library code"
|
||||
|
@ -1,7 +1,7 @@
|
||||
[package]
|
||||
name = "anki_i18n"
|
||||
version = "0.0.0"
|
||||
edition = "2018"
|
||||
edition = "2021"
|
||||
authors = ["Ankitects Pty Ltd and contributors"]
|
||||
license = "AGPL-3.0-or-later"
|
||||
description = "Anki's Rust library i18n code"
|
||||
|
@ -1,7 +1,7 @@
|
||||
[package]
|
||||
name = "anki_i18n_helpers"
|
||||
version = "0.0.0"
|
||||
edition = "2018"
|
||||
edition = "2021"
|
||||
authors = ["Ankitects Pty Ltd and contributors"]
|
||||
license = "AGPL-3.0-or-later"
|
||||
description = "Helpers for Anki's i18n system"
|
||||
|
@ -1,8 +1,6 @@
|
||||
// Copyright: Ankitects Pty Ltd and contributors
|
||||
// License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
|
||||
|
||||
use std::convert::{TryFrom, TryInto};
|
||||
|
||||
use super::Backend;
|
||||
pub(super) use crate::backend_proto::cards_service::Service as CardsService;
|
||||
use crate::{
|
||||
|
@ -4,7 +4,7 @@
|
||||
mod browser_table;
|
||||
mod search_node;
|
||||
|
||||
use std::{convert::TryInto, str::FromStr, sync::Arc};
|
||||
use std::{str::FromStr, sync::Arc};
|
||||
|
||||
use super::{notes::to_note_ids, Backend};
|
||||
pub(super) use crate::backend_proto::search_service::Service as SearchService;
|
||||
|
@ -1,8 +1,6 @@
|
||||
// Copyright: Ankitects Pty Ltd and contributors
|
||||
// License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
|
||||
|
||||
use std::convert::{TryFrom, TryInto};
|
||||
|
||||
use itertools::Itertools;
|
||||
|
||||
use crate::{
|
||||
|
@ -6,7 +6,6 @@ pub(crate) mod undo;
|
||||
use std::{
|
||||
borrow::Cow,
|
||||
collections::{HashMap, HashSet},
|
||||
convert::TryInto,
|
||||
};
|
||||
|
||||
use itertools::Itertools;
|
||||
|
@ -3,8 +3,6 @@
|
||||
|
||||
mod card;
|
||||
|
||||
use std::convert::{TryFrom, TryInto};
|
||||
|
||||
use crate::{
|
||||
config::{ConfigKey, SchedulerVersion},
|
||||
decks::{FilteredDeck, FilteredSearchTerm},
|
||||
|
Loading…
Reference in New Issue
Block a user